public class Goal extends GOElement
Constructor and Description |
---|
Goal(ProcessInstance processInstance,
String name,
GoalType goalType,
Goal parentGoal)
Creates new instance of
Goal with default state
GoalState.INACTIVE . |
Goal(ProcessInstance processInstance,
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.
|
List<Goal> |
getAllSubGoals() |
Collection<GOElement> |
getChildren()
Returns unmodifiable collection of children go elements.
|
com.whitestein.lsps.model.Goal |
getElement(ModelProvider modelProvider)
Returns the model element.
|
String |
getElementId(ModelProvider modelProvider)
Returns the model element id.
|
GoalType |
getGoalType()
Returns the goal type.
|
GoalState |
getState()
Returns the goal state.
|
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, toString
public Goal(ProcessInstance processInstance, String name, GoalType goalType, Goal parentGoal)
Goal
with default state
GoalState.INACTIVE
.processInstance
- name
- goalType
- parentGoal
- NullPointerException
- if processInstance
or moduleInstance
or
name
or goalType
is nullpublic Goal(ProcessInstance processInstance, String name, GoalType goalType, Goal parentGoal, GoalState state)
Goal
.processInstance
- name
- goalType
- parentGoal
- state
- 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)
GOElement
toSerializable
in class GOElement
public GoalState getState()
public GoalType getGoalType()
public boolean isTop()
public Collection<GOElement> getChildren()
GOElement
getChildren
in class GOElement
public void addChild(GOElement element)
element
- NullPointerException
- if element
is nullpublic void setState(GoalState state)
state
- NullPointerException
- if goalState
is nullpublic com.whitestein.lsps.model.Goal getElement(ModelProvider modelProvider)
ModelIdentifiable
public String getElementId(ModelProvider modelProvider)
ModelIdentifiable
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.