eu.beesoft.gantt
Interface Dependency


public interface Dependency

Each object describing dependency between TimelineObjects has to implement this interface.


Method Summary
 TimelineObject getPredecessor()
          Returns an object which dependant depends on.
 TimelineObject getSuccessor()
          Returns a dependant object.
 DependencyType getType()
          Returns the type of this Dependency (one of the constants FINISH_TO_START, FINISH_TO_FINISH, START_TO_START, START_TO_FINISH).
 void setPredecessor(TimelineObject object)
          Sets object which dependant depends on.
 void setSuccessor(TimelineObject object)
          Sets a dependant object.
 void setType(DependencyType type)
          Sets the new type of this Dependency (one of the constants FINISH_TO_START, FINISH_TO_FINISH, START_TO_START, START_TO_FINISH).
 

Method Detail

getSuccessor

TimelineObject getSuccessor()
Returns a dependant object.

Returns:
a dependant object

setSuccessor

void setSuccessor(TimelineObject object)
Sets a dependant object.

Parameters:
object - the object to set

getPredecessor

TimelineObject getPredecessor()
Returns an object which dependant depends on.

Returns:
the dependsOn object

setPredecessor

void setPredecessor(TimelineObject object)
Sets object which dependant depends on.

Parameters:
object - the dependsOn object to set

getType

DependencyType getType()
Returns the type of this Dependency (one of the constants FINISH_TO_START, FINISH_TO_FINISH, START_TO_START, START_TO_FINISH).

Returns:
the dependency type

setType

void setType(DependencyType type)
Sets the new type of this Dependency (one of the constants FINISH_TO_START, FINISH_TO_FINISH, START_TO_START, START_TO_FINISH).

Parameters:
type - the type to set