public class LaborPlace extends Place implements TimeConsumer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_CHANGEOVER_TIME
The changeover time in ticks
|
static java.lang.String |
PROP_END_TIME
The end time of the tokens in this place Format: HHMM
|
static java.lang.String |
PROP_MAX_TOKEN_COUNT
The maximum number of tokens in this labor place
|
static java.lang.String |
PROP_START_TIME
The start time of the tokens in this place Format: HHMM
|
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 |
---|
LaborPlace() |
LaborPlace(int x,
int y,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
void |
addTick()
Adds one time unit to the current time.
|
void |
addTicks(int ticks)
Adds ticks ticks to the current time.
|
void |
addToken(Token t) |
void |
decreaseTokenCount()
Never goes beyond zero.
|
int |
getAverageLoad()
Returns the average load level of this LaborPlace.
|
int |
getCurrentLoad() |
protected java.awt.Shape |
getOutlineShape()
Returns the external shape of the given process node.
|
Token |
getToken(int processInstance)
Returns a random Token of a certain process instance
|
int |
getTokenCount()
Returns the number of all Tokens in this place under consideration
of the working hours.
|
void |
increaseTokenCount() |
protected void |
paintInternal(java.awt.Graphics g)
Paints the flow object on the given graphics.
|
void |
removeAllTokens() |
Token |
removeToken(int processInstance) |
void |
removeToken(Token t) |
void |
resetTicks()
Resets the ticks to zero.
|
void |
setSize(int diameter,
int ignored) |
java.lang.String |
toString() |
getBoundingBox, getTokens, getTokens, getWarningLevel, setWarningLevel
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_MAX_TOKEN_COUNT
public static final java.lang.String PROP_START_TIME
public static final java.lang.String PROP_END_TIME
public static final java.lang.String PROP_CHANGEOVER_TIME
public LaborPlace()
public LaborPlace(int x, int y, java.lang.String label)
public int getTokenCount()
getTokenCount
in class Place
public void decreaseTokenCount()
public void increaseTokenCount()
public void removeToken(Token t)
removeToken
in class Place
public void removeAllTokens()
removeAllTokens
in class Place
public Token getToken(int processInstance)
Place
public Token removeToken(int processInstance)
removeToken
in class Place
public int getAverageLoad()
public int getCurrentLoad()
protected void paintInternal(java.awt.Graphics g)
ProcessNode
paintInternal
in class Place
protected java.awt.Shape getOutlineShape()
ProcessNode
getOutlineShape
in class Place
public void addTick()
TimeConsumer
addTick
in interface TimeConsumer
public void addTicks(int ticks)
TimeConsumer
addTicks
in interface TimeConsumer
public void resetTicks()
TimeConsumer
resetTicks
in interface TimeConsumer