|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.cog.abstraction.impl.common.taskgraph.DependencyImpl
| Field Summary |
| Fields inherited from interface org.globus.cog.abstraction.interfaces.Dependency |
GRAPH, NONE, QUEUE, TREE |
| Constructor Summary | |
DependencyImpl()
|
|
DependencyImpl(int type)
|
|
| 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 executableObject)
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DependencyImpl()
public DependencyImpl(int type)
| Method Detail |
public void setType(int type)
DependencyDependency object.
setType in interface Dependencypublic int getType()
DependencyDependency object.
getType in interface Dependencypublic Enumeration elements()
DependencyDependencyPair
encapsulated within this Dependency object.
elements in interface DependencyDependencyPair
objectspublic Enumeration getDependents(ExecutableObject executableObject)
DependencyExecutableObject s that depend on the
given ExecutableObject.
getDependents in interface DependencyexecutableObject - the ExecutableObject representing the parent.
ExecutableObjectobjectspublic Enumeration getDependsOn(ExecutableObject executableObject)
DependencyExecutableObject s on which the given
ExecutableObject is dependent.
getDependsOn in interface DependencyexecutableObject - the ExecutableObject representing the dependent
ExecutableObject.
ExecutableObjectobjects
public void add(ExecutableObject from,
ExecutableObject to)
DependencyExecutableObject
and "to" ExecutableObject.
add in interface Dependencyfrom - the parent ExecutableObject.to - the child ExecutableObject.
public boolean remove(ExecutableObject from,
ExecutableObject to)
DependencyExecutableObject
and "to" ExecutableObject.
remove in interface Dependencyfrom - the parent ExecutableObject.to - the child ExecutableObject.public boolean removeAllDependents(ExecutableObject executableObject)
DependencyExecutableObject
as the parent.
removeAllDependents in interface DependencyexecutableObject - the parent ExecutableObject
true if all the dependencies are removed.
false otherwise.public boolean removeAllDependsOn(ExecutableObject executableObject)
DependencyExecutableObject
as the child.
removeAllDependsOn in interface Dependencytrue if all the dependencies are removed.
false otherwise.public boolean hasDependents(ExecutableObject executableObject)
DependencyExecutableObject has any dependent
(children).
hasDependents in interface DependencyexecutableObject - the parent ExecutableObject
true if the given ExecutableObject
has dependents. false otherwise.public boolean isDependent(ExecutableObject executableObject)
DependencyExecutableObject is a dependent
(child) of any other ExecutableObject.
isDependent in interface DependencyexecutableObject - the child ExecutableObject
true if the given ExecutableObject
is a child in some dependency. false otherwise.
public boolean contains(ExecutableObject from,
ExecutableObject to)
DependencyDependency object contains a dependency
between the given ExecutableObjects.
contains in interface Dependencyfrom - the parent ExecutableObjectto - the child ExecutableObject
true if there exists a dependency between the
given ExecutableObjects.false
otherwise.public int size()
Dependency
size in interface Dependency
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||