Class TaskObjectImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
-
- de.uni_trier.wi2.procake.data.object.wf.impl.AbstractWorkflowItemObjectImpl
-
- de.uni_trier.wi2.procake.data.object.wf.impl.StatusableObjectImpl
-
- de.uni_trier.wi2.procake.data.object.wf.impl.ControlflowItemObjectImpl
-
- de.uni_trier.wi2.procake.data.object.wf.impl.TaskObjectImpl
-
- All Implemented Interfaces:
DataObject,AbstractWorkflowItemObject,ControlflowItemObject,SequencedObject,StatusableObject,TaskObject,PropertyHandler
public class TaskObjectImpl extends ControlflowItemObjectImpl implements TaskObject, SequencedObject
Workflowleaf-object used in the controlflow of a workflow. CAKE III - Extension.TaskObjectfor more information.- Author:
- Sebastian Goerg
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.data.object.wf.StatusableObject
StatusableObject.STATES
-
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.data.object.wf.TaskObject
TaskObject.TYPES
-
-
Field Summary
-
Fields inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.AbstractWorkflowItemObjectImpl
workflow
-
Fields inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
objectId
-
-
Constructor Summary
Constructors Constructor Description TaskObjectImpl(DataClass dataClass)Standard constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInputDataflowRef(DataReferenceObject dataRef)Adds a dataobject to the list of input-dataobjects.voidaddInputDataflowRef(String newInputId)Adds a dataobject to the list of input-dataobjects.voidaddOutputDataflowRef(DataReferenceObject dataRef)Adds a dataobject to the list of output-dataobjects.voidaddOutputDataflowRef(String newOutputId)Adds a dataobject to the list of output-dataobjects.protected voiddistributeWorkflowObject(WorkflowObject workflow)Informs all subWorkflowObjects about getting a new workflow-items.DataReferenceObjectgetInputDataflow(String id)Returns the input-dataobject with the given id.List<String>getInputDataflowIDs()Returns the list of IDs of input-dataobjects.List<DataReferenceObject>getInputDataflowRefs()Returns the list of input-dataobjects.DataReferenceObjectgetOutputDataflow(String id)Returns the output-dataobject with the given id.List<String>getOutputDataflowIDs()Returns the list of IDs of output.dataobjects.List<DataReferenceObject>getOutputDataflowRefs()Returns the list of output-dataobjects.TaskObject.TYPESgetType()Returns the type of the task.protected voidpublishAddDataRef(DataReferenceObject newItem, WorkflowBlockListener.DATAFLOW_DIRECTION direction)Informs registered eventlisteners about the adding the given dataelement as input or output to the task.protected voidpublishRemoveDataRef(String dataElementID, WorkflowBlockListener.DATAFLOW_DIRECTION direction)Informs registered eventlisteners about the removal of the dataelement with the given id as input or output to the task.booleanremoveInputDataflowRef(String id)Removes the input-dataobject with the given id from the list.booleanremoveOutputDataflowRef(String id)Removes the output-dataobject with the given id from the list.voidsetType(TaskObject.TYPES type)Sets the type of the task.StringtoString()-
Methods inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.ControlflowItemObjectImpl
getNextSibling, getParent, getPreviousSibling, insertAfterMe, insertBeforeMe, setParent
-
Methods inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.StatusableObjectImpl
getStatus, setStatus
-
Methods inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.AbstractWorkflowItemObjectImpl
assertSameValueAsIn, getSemanticDescriptor, getWFItemId, getWorkflow, hasSameValueAsIn, publishAddItem, publishRemoveItem, setSemanticDescriptor, setWFItemId, setWorkflow
-
Methods inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
addProperty, addProperty, copy, deepCopy, getAllProperties, getAllPropertyNodes, getDataClass, getId, getModel, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasClassName, hasProperties, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, removeProperty, setDataClass, setId, toDetailedString, toXML
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.wf.AbstractWorkflowItemObject
getSemanticDescriptor, getWFItemId, getWorkflow, setSemanticDescriptor, setWFItemId, setWorkflow
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.wf.ControlflowItemObject
getNextSibling, getParent, getPreviousSibling, insertAfterMe, insertBeforeMe
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
assertSameValueAsIn, copy, getDataClass, getId, getModel, hasClassName, hasSameValueAsIn, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, setDataClass, setId, toDetailedString, toXML
-
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.wf.StatusableObject
getStatus, setStatus
-
-
-
-
Constructor Detail
-
TaskObjectImpl
public TaskObjectImpl(DataClass dataClass)
Standard constructor- Parameters:
dataClass-
-
-
Method Detail
-
getType
public TaskObject.TYPES getType()
Description copied from interface:TaskObjectReturns the type of the task.- Specified by:
getTypein interfaceTaskObject- Returns:
- Type of the task.
-
setType
public void setType(TaskObject.TYPES type)
Description copied from interface:TaskObjectSets the type of the task.- Specified by:
setTypein interfaceTaskObject- Parameters:
type- Type of the task.
-
toString
public String toString()
- Overrides:
toStringin classDataObjectImpl
-
addInputDataflowRef
public void addInputDataflowRef(DataReferenceObject dataRef)
Description copied from interface:TaskObjectAdds a dataobject to the list of input-dataobjects.- Specified by:
addInputDataflowRefin interfaceTaskObject- Parameters:
dataRef- New input-dataobject.
-
addOutputDataflowRef
public void addOutputDataflowRef(DataReferenceObject dataRef)
Description copied from interface:TaskObjectAdds a dataobject to the list of output-dataobjects.- Specified by:
addOutputDataflowRefin interfaceTaskObject- Parameters:
dataRef- New output-dataobject.
-
getInputDataflowRefs
public List<DataReferenceObject> getInputDataflowRefs()
Description copied from interface:TaskObjectReturns the list of input-dataobjects.- Specified by:
getInputDataflowRefsin interfaceTaskObject- Returns:
- List of input-dataobjects.
-
getInputDataflowIDs
public List<String> getInputDataflowIDs()
Description copied from interface:TaskObjectReturns the list of IDs of input-dataobjects.- Specified by:
getInputDataflowIDsin interfaceTaskObject
-
getOutputDataflowRefs
public List<DataReferenceObject> getOutputDataflowRefs()
Description copied from interface:TaskObjectReturns the list of output-dataobjects.- Specified by:
getOutputDataflowRefsin interfaceTaskObject- Returns:
- List of output-dataobjects.
-
getOutputDataflowIDs
public List<String> getOutputDataflowIDs()
Description copied from interface:TaskObjectReturns the list of IDs of output.dataobjects.- Specified by:
getOutputDataflowIDsin interfaceTaskObject
-
removeInputDataflowRef
public boolean removeInputDataflowRef(String id)
Description copied from interface:TaskObjectRemoves the input-dataobject with the given id from the list.- Specified by:
removeInputDataflowRefin interfaceTaskObject- Parameters:
id- Id of the input-dataobject to remove.- Returns:
- TRUE if the removal was successful, FALSE otherwise.
-
removeOutputDataflowRef
public boolean removeOutputDataflowRef(String id)
Description copied from interface:TaskObjectRemoves the output-dataobject with the given id from the list.- Specified by:
removeOutputDataflowRefin interfaceTaskObject- Parameters:
id- Id of the output-dataobject to remove.- Returns:
- TRUE if the removal was successful, FALSE otherwise.
-
getInputDataflow
public DataReferenceObject getInputDataflow(String id)
Description copied from interface:TaskObjectReturns the input-dataobject with the given id.- Specified by:
getInputDataflowin interfaceTaskObject- Parameters:
id- Id of the input-dataobject to return.- Returns:
- The input-dataobject, if the object was found; NULL otherwise.
-
getOutputDataflow
public DataReferenceObject getOutputDataflow(String id)
Description copied from interface:TaskObjectReturns the output-dataobject with the given id.- Specified by:
getOutputDataflowin interfaceTaskObject- Parameters:
id- Id of the output-dataobject to return.- Returns:
- The output-dataobject, if the object was found; NULL otherwise.
-
publishAddDataRef
protected void publishAddDataRef(DataReferenceObject newItem, WorkflowBlockListener.DATAFLOW_DIRECTION direction)
Informs registered eventlisteners about the adding the given dataelement as input or output to the task.- Parameters:
newItem- The dataelement, which was referenced.direction- The direction in which to address the dataelement (input or output).
-
publishRemoveDataRef
protected void publishRemoveDataRef(String dataElementID, WorkflowBlockListener.DATAFLOW_DIRECTION direction)
Informs registered eventlisteners about the removal of the dataelement with the given id as input or output to the task.- Parameters:
dataElementID- The id of the dataelement, which was removed.direction- The direction in which to address the dataelement (input or output).
-
addInputDataflowRef
public void addInputDataflowRef(String newInputId)
Description copied from interface:TaskObjectAdds a dataobject to the list of input-dataobjects.- Specified by:
addInputDataflowRefin interfaceTaskObject- Parameters:
newInputId- The Id of the data-object.
-
addOutputDataflowRef
public void addOutputDataflowRef(String newOutputId)
Description copied from interface:TaskObjectAdds a dataobject to the list of output-dataobjects.- Specified by:
addOutputDataflowRefin interfaceTaskObject- Parameters:
newOutputId- The Id of the data-object.
-
distributeWorkflowObject
protected void distributeWorkflowObject(WorkflowObject workflow)
Description copied from class:AbstractWorkflowItemObjectImplInforms all subWorkflowObjects about getting a new workflow-items.- Specified by:
distributeWorkflowObjectin classAbstractWorkflowItemObjectImpl
-
-