|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface provides the control dependencies between various
ExecutableObjects.
Dependencies are specified as ("from","to") pairs, indicating that the
ExecutableObject representing "from" will be executed before
that representing "to".
| Field Summary | |
static int |
GRAPH
Represents a grpah-like dependency. |
static int |
NONE
Represents no dependencies at all. |
static int |
QUEUE
Represents a queue-like dependency (Also refered to as FIFO dependency). |
static int |
TREE
Represent a tree-like dependency. |
| Method Summary | |
void |
add(ExecutableObject from,
ExecutableObject to)
Adds the dependency between the "from" ExecutableObject
and "to" ExecutableObject. |
boolean |
contains(ExecutableObject from,
ExecutableObject to)
Specifies if this Dependency object contains a dependency
between the given ExecutableObjects. |
Enumeration |
elements()
Returns all the DependencyPair
encapsulated within this Dependency object. |
Enumeration |
getDependents(ExecutableObject executableObject)
Returns all the ExecutableObject s that depend on the
given ExecutableObject. |
Enumeration |
getDependsOn(ExecutableObject executableObject)
Returns all the ExecutableObject s on which the given
ExecutableObject is dependent. |
int |
getType()
Returns the type of dependency pattern represented by this Dependency object. |
boolean |
hasDependents(ExecutableObject executableObject)
Specifies if the given ExecutableObject has any dependent
(children). |
boolean |
isDependent(ExecutableObject executableObject)
Specifies if the given ExecutableObject is a dependent
(child) of any other ExecutableObject. |
boolean |
remove(ExecutableObject from,
ExecutableObject to)
Removes the dependency between the "from" ExecutableObject
and "to" ExecutableObject. |
boolean |
removeAllDependents(ExecutableObject id)
Removes all dependencies that has the given ExecutableObject
as the parent. |
boolean |
removeAllDependsOn(ExecutableObject executableObject)
Removes all dependencies that has the given ExecutableObject
as the child. |
void |
setType(int type)
Sets the type of dependency pattern represented by this Dependency object. |
int |
size()
Returns the total number of dependencies. |
| Field Detail |
public static final int NONE
Set
public static final int QUEUE
Queue
public static final int GRAPH
TaskGraph
public static final int TREE
| Method Detail |
public void setType(int type)
Dependency object.
public int getType()
Dependency object.
public Enumeration elements()
DependencyPair
encapsulated within this Dependency object.
DependencyPair
objectspublic Enumeration getDependents(ExecutableObject executableObject)
ExecutableObject s that depend on the
given ExecutableObject.
executableObject - the ExecutableObject representing the parent.
ExecutableObjectobjectspublic Enumeration getDependsOn(ExecutableObject executableObject)
ExecutableObject s on which the given
ExecutableObject is dependent.
executableObject - the ExecutableObject representing the dependent
ExecutableObject.
ExecutableObjectobjects
public void add(ExecutableObject from,
ExecutableObject to)
ExecutableObject
and "to" ExecutableObject.
from - the parent ExecutableObject.to - the child ExecutableObject.
public boolean remove(ExecutableObject from,
ExecutableObject to)
ExecutableObject
and "to" ExecutableObject.
from - the parent ExecutableObject.to - the child ExecutableObject.public boolean removeAllDependents(ExecutableObject id)
ExecutableObject
as the parent.
id - the parent ExecutableObject
true if all the dependencies are removed.
false otherwise.public boolean removeAllDependsOn(ExecutableObject executableObject)
ExecutableObject
as the child.
true if all the dependencies are removed.
false otherwise.public boolean hasDependents(ExecutableObject executableObject)
ExecutableObject has any dependent
(children).
executableObject - the parent ExecutableObject
true if the given ExecutableObject
has dependents. false otherwise.public boolean isDependent(ExecutableObject executableObject)
ExecutableObject is a dependent
(child) of any other ExecutableObject.
executableObject - the child ExecutableObject
true if the given ExecutableObject
is a child in some dependency. false otherwise.
public boolean contains(ExecutableObject from,
ExecutableObject to)
Dependency object contains a dependency
between the given ExecutableObjects.
from - the parent ExecutableObjectto - the child ExecutableObject
true if there exists a dependency between the
given ExecutableObjects.false
otherwise.public int size()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||