Klasse ActivityLink<A extends Activity>
java.lang.Object
com.flexganttfx.model.ActivityLink<A>
- Typparameter:
A- the type of the two activities being linked together
- Alle implementierten Schnittstellen:
Activity
An activity link can be used to model any kind of dependency between two
activities. In project planning applications a link would express a
predecessor / successor relationship between two tasks, for example
"task A must be finished before task B can begin". In other domains a link
might simply express that two or more activities need to be scheduled
together and that moving one of them requires all others to be moved, too.
- Seit:
- 1.0
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumAn enumerator listing the available link types. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungActivityLink(ActivityRef<A> sourceRef, ActivityRef<A> targetRef) Constructs a new activity link with typeActivityLink.LinkType.END_TO_START.ActivityLink(ActivityRef<A> sourceRef, ActivityRef<A> targetRef, ActivityLink.LinkType type) Constructs a new activity link. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal InstantThe end time of the activity.getId()The unique id of the activity.getName()The name of the activity, for example "Flight 3441".final ActivityRef<A> Returns the activity reference pointing to the source activity of the link.final InstantThe start time of the activity.final ActivityRef<A> Returns the activity reference pointing to the target activity of the link.final ActivityLink.LinkTypegetType()Returns the link type (S-S, S-E, E-S, E-E).final ObjectReturns the (optional) user object of the activity link.voidsetSourceActivityRef(ActivityRef<A> ref) Sets the activity reference pointing to the source activity of the link.voidsetTargetActivityRef(ActivityRef<A> ref) Sets the activity reference pointing to the target activity of the link.voidsetType(ActivityLink.LinkType type) Sets the link type (S-S, S-E, E-S, E-E).final voidsetUserObject(Object userObject) An optional user object that might be useful for creating a custom renderer.
-
Konstruktordetails
-
ActivityLink
Constructs a new activity link.- Parameter:
sourceRef- an activity reference pointing to the link sourcetargetRef- an activity reference pointing to the link targettype- the type of the link (E-S, S-E, S-S, E-E)- Seit:
- 1.0
-
ActivityLink
Constructs a new activity link with typeActivityLink.LinkType.END_TO_START.- Parameter:
sourceRef- an activity reference pointing to the link sourcetargetRef- an activity reference pointing to the link target- Seit:
- 1.0
-
-
Methodendetails
-
setSourceActivityRef
Sets the activity reference pointing to the source activity of the link.- Parameter:
ref- the source activity reference- Seit:
- 1.0
-
getSourceActivityRef
Returns the activity reference pointing to the source activity of the link.- Gibt zurück:
- the source activity reference
- Seit:
- 1.0
-
setTargetActivityRef
Sets the activity reference pointing to the target activity of the link.- Parameter:
ref- the target activity reference- Seit:
- 1.0
-
getTargetActivityRef
Returns the activity reference pointing to the target activity of the link.- Gibt zurück:
- the target activity reference
- Seit:
- 1.0
-
getType
Returns the link type (S-S, S-E, E-S, E-E).- Gibt zurück:
- the link type
- Seit:
- 1.0
-
setType
Sets the link type (S-S, S-E, E-S, E-E).- Parameter:
type- the link type- Seit:
- 1.0
-
getName
-
getId
-
getStartTime
Beschreibung aus Schnittstelle kopiert:ActivityThe start time of the activity.- Angegeben von:
getStartTimein SchnittstelleActivity- Gibt zurück:
- the activity start time
-
getEndTime
Beschreibung aus Schnittstelle kopiert:ActivityThe end time of the activity.- Angegeben von:
getEndTimein SchnittstelleActivity- Gibt zurück:
- the activity end time
-
setUserObject
An optional user object that might be useful for creating a custom renderer.- Parameter:
userObject- an optional user object
-
getUserObject
Returns the (optional) user object of the activity link.- Gibt zurück:
- the optional user object
-