public class Plan extends GOElement
| Constructor and Description |
|---|
Plan(ProcessInstance processInstance,
String name,
Goal parentGoal)
Creates new instance of
Plan. |
Plan(ProcessInstance processInstance,
String name,
Goal parentGoal,
PlanState state)
Creates new instance of
Plan. |
Plan(SPlan source,
Goal parent,
ProcessInstance processInstance,
ModelInstance modelInstance)
Creates a new instance from the serialized companion.
|
| Modifier and Type | Method and Description |
|---|---|
Plan |
createCopy(ModelInstance targetModelInstance,
ProcessInstance targetProcessInstance,
Goal targetParentGoal) |
Collection<GOElement> |
getChildren()
Returns unmodifiable collection of children go elements.
|
com.whitestein.lsps.model.Plan |
getElement(ModelProvider modelProvider)
Returns the model element.
|
String |
getElementId(ModelProvider modelProvider)
Returns the model element id.
|
ProcessInstance |
getPlanProcessInstance()
Returns the process instance of the plan.
|
PlanState |
getState()
Returns the plan state.
|
void |
setPlanProcessInstance(ProcessInstance processInstance)
Sets the plan context.
|
void |
setState(PlanState state)
Sets new plan state
|
SGOElement |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
fireChange, getModelInstance, getName, getParentGoal, getPath, getPathQID, getProcessInstance, rebind, toStringpublic Plan(ProcessInstance processInstance, String name, Goal parentGoal)
Plan.processInstance - name - parentGoal - NullPointerException - if processInstance or moduleInstance or
name is nullpublic Plan(ProcessInstance processInstance, String name, Goal parentGoal, PlanState state)
Plan.processInstance - name - parentGoal - state - NullPointerException - if processInstance or moduleInstance or
name or state or parentGoal is nullpublic Plan(SPlan source, Goal parent, ProcessInstance processInstance, ModelInstance modelInstance)
source - parent - processInstance - modelInstance - public SGOElement toSerializable(SModelInstance smi, MarshallerConfig config)
GOElementtoSerializable in class GOElementpublic PlanState getState()
public void setState(PlanState state)
state - NullPointerException - if state is nullpublic ProcessInstance getPlanProcessInstance()
public void setPlanProcessInstance(ProcessInstance processInstance)
processInstance - public com.whitestein.lsps.model.Plan getElement(ModelProvider modelProvider)
ModelIdentifiablepublic String getElementId(ModelProvider modelProvider)
ModelIdentifiablepublic Collection<GOElement> getChildren()
GOElementgetChildren in class GOElementpublic Plan createCopy(ModelInstance targetModelInstance, ProcessInstance targetProcessInstance, Goal targetParentGoal)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.