Package jadex.bpmn.editor.model.visual
Class VActivity
- java.lang.Object
-
- com.mxgraph.model.mxCell
-
- jadex.bpmn.editor.model.visual.VElement
-
- jadex.bpmn.editor.model.visual.VNode
-
- jadex.bpmn.editor.model.visual.VNamedNode
-
- jadex.bpmn.editor.model.visual.VActivity
-
- All Implemented Interfaces:
com.mxgraph.model.mxICell
,java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
VExternalSubProcess
,VSubProcess
public class VActivity extends VNamedNode
Visual representation of an activity.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,VInParameter>
inports
Map to parameter input ports.java.util.Set<java.lang.String>
internalparameters
Set of internal parametersjava.util.Map<java.lang.String,VOutParameter>
outports
Map to parameter input ports.-
Fields inherited from class jadex.bpmn.editor.model.visual.VElement
bpmnelement, graph
-
-
Constructor Summary
Constructors Constructor Description VActivity(com.mxgraph.view.mxGraph graph)
Creates a new activity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addedParameter(MParameter param)
Called when a parameter is added.void
addInternalParameter(java.lang.String paramname)
Adds a parameter to the internal parameter set.protected void
createParameterObjects()
VInParameter
getInputParameterPort(java.lang.String paramname)
Gets the port for an input parameter.java.util.Set<java.lang.String>
getInternalParameters()
Gets the internal parameter set.MActivity
getMActivity()
Returns the MActivity.VOutParameter
getOutputParameterPort(java.lang.String paramname)
Gets the port for an output parameter.java.lang.String
getStyle()
Gets the style.boolean
isInternalParameters(java.lang.String paramname)
Returns if a parameter is in the internal parameter set.void
refreshParameter(MParameter rparam)
Called when a parameters need to be refreshed.void
refreshParameterObjectGeometry()
Refresh the parameter geometry.void
removedParameter(java.util.Set<MParameter> params)
Called when a parameters are removed.void
removeInternalParameter(java.lang.String paramname)
Removes a parameter from the internal parameter set.void
setBpmnElement(MIdElement bpmnelement)
Set BPMN element.void
setGeometry(com.mxgraph.model.mxGeometry geometry)
Set geometry.void
setInternalParameters(java.util.Collection<java.lang.String> internalparameters)
Sets the internal parameter set.void
setParent(com.mxgraph.model.mxICell parent)
Sets the parent.-
Methods inherited from class jadex.bpmn.editor.model.visual.VNamedNode
getValue, setValue
-
Methods inherited from class jadex.bpmn.editor.model.visual.VElement
getBpmnElement, getGraph, setVisualParent
-
Methods inherited from class com.mxgraph.model.mxCell
clone, cloneValue, getAttribute, getAttribute, getChildAt, getChildCount, getEdgeAt, getEdgeCount, getEdgeIndex, getGeometry, getId, getIndex, getParent, getSource, getTarget, getTerminal, insert, insert, insertEdge, isCollapsed, isConnectable, isEdge, isVertex, isVisible, remove, remove, removeEdge, removeFromParent, removeFromTerminal, setAttribute, setCollapsed, setConnectable, setEdge, setId, setSource, setStyle, setTarget, setTerminal, setVertex, setVisible
-
-
-
-
Field Detail
-
inports
public java.util.Map<java.lang.String,VInParameter> inports
Map to parameter input ports.
-
outports
public java.util.Map<java.lang.String,VOutParameter> outports
Map to parameter input ports.
-
internalparameters
public java.util.Set<java.lang.String> internalparameters
Set of internal parameters
-
-
Method Detail
-
getStyle
public java.lang.String getStyle()
Gets the style.- Specified by:
getStyle
in interfacecom.mxgraph.model.mxICell
- Overrides:
getStyle
in classcom.mxgraph.model.mxCell
-
getMActivity
public MActivity getMActivity()
Returns the MActivity.- Returns:
- The MActivity.
-
setParent
public void setParent(com.mxgraph.model.mxICell parent)
Sets the parent.- Specified by:
setParent
in interfacecom.mxgraph.model.mxICell
- Overrides:
setParent
in classcom.mxgraph.model.mxCell
-
getInputParameterPort
public VInParameter getInputParameterPort(java.lang.String paramname)
Gets the port for an input parameter.- Parameters:
paramname
- The parameter name.- Returns:
- The port.
-
getOutputParameterPort
public VOutParameter getOutputParameterPort(java.lang.String paramname)
Gets the port for an output parameter.- Parameters:
paramname
- The parameter name.- Returns:
- The port.
-
setGeometry
public void setGeometry(com.mxgraph.model.mxGeometry geometry)
Set geometry.- Specified by:
setGeometry
in interfacecom.mxgraph.model.mxICell
- Overrides:
setGeometry
in classcom.mxgraph.model.mxCell
-
setBpmnElement
public void setBpmnElement(MIdElement bpmnelement)
Set BPMN element.- Overrides:
setBpmnElement
in classVNamedNode
- Parameters:
bpmnelement
- The BPMN element.
-
addInternalParameter
public void addInternalParameter(java.lang.String paramname)
Adds a parameter to the internal parameter set.- Parameters:
paramname
- The parameter name.
-
removeInternalParameter
public void removeInternalParameter(java.lang.String paramname)
Removes a parameter from the internal parameter set.- Parameters:
paramname
- The parameter name.
-
isInternalParameters
public boolean isInternalParameters(java.lang.String paramname)
Returns if a parameter is in the internal parameter set.- Returns:
- True, if contained.
-
setInternalParameters
public void setInternalParameters(java.util.Collection<java.lang.String> internalparameters)
Sets the internal parameter set.
-
getInternalParameters
public java.util.Set<java.lang.String> getInternalParameters()
Gets the internal parameter set.
-
refreshParameterObjectGeometry
public void refreshParameterObjectGeometry()
Refresh the parameter geometry.
-
addedParameter
public void addedParameter(MParameter param)
Called when a parameter is added.- Parameters:
param
- The parameter.
-
removedParameter
public void removedParameter(java.util.Set<MParameter> params)
Called when a parameters are removed.- Parameters:
param
- The parameters.
-
refreshParameter
public void refreshParameter(MParameter rparam)
Called when a parameters need to be refreshed.- Parameters:
rparam
- The parameter.
-
createParameterObjects
protected void createParameterObjects()
-
-