A
- the type of the two activities being linked togetherpublic class ActivityLink<A extends Activity> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ActivityLink.LinkType
An enumerator listing the available link types.
|
Constructor and Description |
---|
ActivityLink(ActivityRef<A> sourceRef,
ActivityRef<A> targetRef)
Constructs a new activity link with type
ActivityLink.LinkType.END_TO_START . |
ActivityLink(ActivityRef<A> sourceRef,
ActivityRef<A> targetRef,
ActivityLink.LinkType type)
Constructs a new activity link.
|
Modifier and Type | Method and Description |
---|---|
ActivityRef<A> |
getSourceActivityRef()
Returns the activity reference pointing to the source activity of the
link.
|
ActivityRef<A> |
getTargetActivityRef()
Returns the activity reference pointing to the target activity of the
link.
|
ActivityLink.LinkType |
getType()
Returns the link type (S-S, S-E, E-S, E-E).
|
void |
setSourceActivityRef(ActivityRef<A> ref)
Sets the activity reference pointing to the source activity of the link.
|
void |
setTargetActivityRef(ActivityRef<A> ref)
Sets the activity reference pointing to the target activity of the link.
|
void |
setType(ActivityLink.LinkType type)
Sets the link type (S-S, S-E, E-S, E-E).
|
public ActivityLink(ActivityRef<A> sourceRef, ActivityRef<A> targetRef, ActivityLink.LinkType type)
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)public ActivityLink(ActivityRef<A> sourceRef, ActivityRef<A> targetRef)
ActivityLink.LinkType.END_TO_START
.sourceRef
- an activity reference pointing to the link sourcetargetRef
- an activity reference pointing to the link targetpublic void setSourceActivityRef(ActivityRef<A> ref)
ref
- the source activity referencepublic final ActivityRef<A> getSourceActivityRef()
public void setTargetActivityRef(ActivityRef<A> ref)
ref
- the target activity referencepublic final ActivityRef<A> getTargetActivityRef()
public final ActivityLink.LinkType getType()
public void setType(ActivityLink.LinkType type)
type
- the link typeCopyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.