public class SubNet extends Transition
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_SUBNET
Property for the file name of the subnet
|
PROP_COST, PROP_DURATION, PROP_PROBABILITY, 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 |
---|
SubNet() |
SubNet(int x,
int y,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawTask(java.awt.Graphics g)
Draws a subnet task.
|
protected java.awt.Shape |
getOutlineShape()
Returns the external shape of the given process node.
|
PetriNetModel |
getSubNet()
Returns the internal Petri net model for this subnet
If the subnet has not yet been loaded, the file from the property PROP_SUBNET is read. |
protected void |
initializeProperties() |
void |
setSubNet(PetriNetModel m)
Sets the internal Petri net model for this subnet
|
java.lang.String |
toString() |
drawTimer, fire, getBoundingBox, getInstanceCount, getProbability, getRemainingTime, isEnabled, isEnabledHighlight, isResetWaiting, paintInternal, setEnabledHighlight, setInstanceCount, setRemainingTime, setSize
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_SUBNET
public SubNet()
public SubNet(int x, int y, java.lang.String label)
protected void initializeProperties()
initializeProperties
in class Transition
public PetriNetModel getSubNet()
public void setSubNet(PetriNetModel m)
m
- - not used so farprotected java.awt.Shape getOutlineShape()
ProcessNode
getOutlineShape
in class Transition
protected void drawTask(java.awt.Graphics g)
drawTask
in class Transition
public java.lang.String toString()
toString
in class Transition