View Javadoc

1   /*
2    * Copyright (c) 2005, The K-Wf Grid Consortium
3    * Fraunhofer Institute for Computer Architecture and Software Technology
4    * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
5    */
6   package net.kwfgrid.gworkflowdl.protocol.structure;
7   
8   import java.util.List;
9   
10  /***
11     Interface for a root object of a structure.
12   */
13  public interface IRootObject extends IStructureObject {
14      /***
15         Get the ID of the structure of which this object is the root.
16       */
17      String getID();
18  
19      /***
20         Increment the version number of the structure.
21         @return The new version number of the structure.
22       */
23      int incrementVersionNumber();
24  
25      /***
26         Get the current version number of the structure.
27       */
28      int getVersionNumber();
29  
30      /***
31         Add a <code>StructureListener</code>.
32       */
33      void addStructureListener(IStructureListener listener);
34  
35      /***
36         Remove a <code>StructureListener</code>.
37       */
38      void removeStructureListener(IStructureListener listener);
39  
40      /***
41         Get the structure listeners registered for the structure of which this object is the root.
42       */
43      IStructureListener[] getStructureListeners();
44  
45      /***
46         Get the task queue of this root object.
47       */
48      List getTaskQueue();
49  }