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, toString
public 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)
GOElement
toSerializable
in class GOElement
public 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)
ModelIdentifiable
public String getElementId(ModelProvider modelProvider)
ModelIdentifiable
public Collection<GOElement> getChildren()
GOElement
getChildren
in class GOElement
public Plan createCopy(ModelInstance targetModelInstance, ProcessInstance targetProcessInstance, Goal targetParentGoal)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.