public class Transition extends ProcessNode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_COST |
static java.lang.String |
PROP_DURATION |
static java.lang.String |
PROP_PROBABILITY |
static java.lang.String |
PROP_RESET_WAITING_TIME |
PROP_ANNOTATION, PROP_BACKGROUND, PROP_HEIGHT, PROP_LABEL, PROP_MODULEID, PROP_REF, PROP_SHADOW, PROP_STEREOTYPE, PROP_TEXT, PROP_WIDTH, PROP_XPOS, PROP_YPOS, TAG_NODE, userObject
contexts, FALSE, PROP_CLASS_TYPE, PROP_ID, TRUE
Constructor and Description |
---|
Transition() |
Transition(int x,
int y,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawTask(java.awt.Graphics g)
Draws a Workflow net task.
|
protected void |
drawTimer(java.awt.Graphics2D g2) |
boolean |
fire(java.util.Set<Token> inTokens)
Fires this Transition.
|
java.awt.Rectangle |
getBoundingBox()
Returns the bounding box for this ProcessNode.
|
int |
getInstanceCount() |
protected java.awt.Shape |
getOutlineShape()
Returns the external shape of the given process node.
|
int |
getProbability() |
int |
getRemainingTime() |
protected void |
initializeProperties() |
boolean |
isEnabled(java.util.List<Predecessor> preSet,
int processInstance)
Return if this Transition is enabled for a given process instance.
|
boolean |
isEnabledHighlight() |
boolean |
isResetWaiting() |
protected void |
paintInternal(java.awt.Graphics g)
Paints the flow object on the given graphics.
|
void |
setEnabledHighlight(boolean highlightEnabledTransition) |
void |
setInstanceCount(int instanceCount) |
void |
setRemainingTime(int remainingTime) |
void |
setSize(int w,
int h) |
java.lang.String |
toString() |
addConnectionPoint, checkDefaultConnectionPoints, clone, connectionPointContained, contains, containsDeepInside, copy, getBackground, getBackground, getBounds, getConnectionPoint, getConnectionPoint, getConnectionPoint, getDefaultConnectionPoints, getName, getParentClusters, getPos, getSelectionOffset, getSize, getStereotype, getText, getTopLeftPos, getUserObject, getVariants, getXmlTag, handleCloning, isCluster, isShadowEnabled, isVisible, newInstanceFromSerialization, paint, paintHighlight, paintSelection, removeAllConnectionPoints, setBackground, setPos, setPos, setProperty, setShadowEnabled, setSize, setStereotype, setText, setUserObject, setVisible, updateReferences
addContext, addListener, equals, getAlpha, getContexts, getId, getPropertyEditor, isHighlighted, isSelected, removeContext, removeListener, setAlpha, setHighlighted, setId, setPropertyEditor, setSelected
getProperty, getPropertyKeys, getSerialization, removeProperty
public static final java.lang.String PROP_COST
public static final java.lang.String PROP_DURATION
public static final java.lang.String PROP_PROBABILITY
public static final java.lang.String PROP_RESET_WAITING_TIME
public Transition()
public Transition(int x, int y, java.lang.String label)
protected void initializeProperties()
public void setSize(int w, int h)
setSize
in class ProcessNode
public boolean isEnabled(java.util.List<Predecessor> preSet, int processInstance)
public boolean fire(java.util.Set<Token> inTokens)
inTokens
- preSet
- The set of places before this Transition.postSet
- The set of places after this Transition.public void setEnabledHighlight(boolean highlightEnabledTransition)
highlightEnabledTransition
- public boolean isEnabledHighlight()
public int getRemainingTime()
public void setRemainingTime(int remainingTime)
public int getInstanceCount()
public void setInstanceCount(int instanceCount)
public int getProbability()
public boolean isResetWaiting()
protected void paintInternal(java.awt.Graphics g)
ProcessNode
paintInternal
in class ProcessNode
protected java.awt.Shape getOutlineShape()
ProcessNode
getOutlineShape
in class ProcessNode
public java.awt.Rectangle getBoundingBox()
ProcessNode
getBoundingBox
in class ProcessNode
protected void drawTask(java.awt.Graphics g)
protected void drawTimer(java.awt.Graphics2D g2)
public java.lang.String toString()
toString
in class ProcessNode