public class Goal extends GOElement
| Constructor and Description |
|---|
Goal(ProcessInstance processInstance,
java.lang.String name,
GoalType goalType,
Goal parentGoal)
Creates new instance of
Goal with default state
GoalState.INACTIVE. |
Goal(ProcessInstance processInstance,
java.lang.String name,
GoalType goalType,
Goal parentGoal,
GoalState state)
Creates new instance of
Goal. |
Goal(SGoal s,
Goal parent,
ProcessInstance processInstance,
ModelInstance modelInstance)
Creates a new instance from the serialized companion.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(GOElement element)
Adds child.
|
java.util.List<Goal> |
getAllSubGoals() |
java.util.Collection<GOElement> |
getChildren()
Returns unmodifiable collection of children go elements.
|
com.whitestein.lsps.model.Goal |
getElement(ModelProvider modelProvider)
Returns the model element.
|
java.lang.String |
getElementId(ModelProvider modelProvider)
Returns the model element id.
|
GoalType |
getGoalType()
Returns the goal type.
|
GoalState |
getState()
Returns the goal state.
|
java.util.List<Goal> |
getSubGoals() |
boolean |
isTop()
Returns if this is top goal.
|
void |
setState(GoalState state)
Sets new goal state.
|
SGoal |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
fireChange, getModelInstance, getName, getParentGoal, getPath, getPathQID, getProcessInstance, rebind, toStringpublic Goal(ProcessInstance processInstance, java.lang.String name, GoalType goalType, Goal parentGoal)
Goal with default state
GoalState.INACTIVE.processInstance - name - goalType - parentGoal - java.lang.NullPointerException - if processInstance or moduleInstance or
name or goalType is nullpublic Goal(ProcessInstance processInstance, java.lang.String name, GoalType goalType, Goal parentGoal, GoalState state)
Goal.processInstance - name - goalType - parentGoal - state - java.lang.NullPointerException - if processInstance or moduleInstance or
name or goalType or state is nullpublic Goal(SGoal s, Goal parent, ProcessInstance processInstance, ModelInstance modelInstance)
s - parent - processInstance - modelInstance - public SGoal toSerializable(SModelInstance smi, MarshallerConfig config)
GOElementtoSerializable in class GOElementpublic GoalState getState()
public GoalType getGoalType()
public boolean isTop()
public java.util.Collection<GOElement> getChildren()
GOElementgetChildren in class GOElementpublic void addChild(GOElement element)
element - java.lang.NullPointerException - if element is nullpublic void setState(GoalState state)
state - java.lang.NullPointerException - if goalState is nullpublic com.whitestein.lsps.model.Goal getElement(ModelProvider modelProvider)
ModelIdentifiablepublic java.lang.String getElementId(ModelProvider modelProvider)
ModelIdentifiablepublic java.util.List<Goal> getSubGoals()
public java.util.List<Goal> getAllSubGoals()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.