Class CacheCell
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.jgraph.graph.DefaultGraphCell
jsimgraph.JGraphMod.JmtCell
jsimgraph.JGraphMod.CacheCell
- All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode, org.jgraph.graph.GraphCell
It represent a component that switches class of jobs coming into it.
- Author:
- John
- See Also:
-
Field Summary
FieldsFields inherited from class JmtCell
CACHE, CLASSSWITCH, DELAY, FORK, icon, in, JOIN, LOGGER, out, PLACE, ROUTER, SCALER, seen, SEMAPHORE, SERVER, SINK, sons, SOURCE, TERMINAL, TRANSITION, typeFields inherited from class org.jgraph.graph.DefaultGraphCell
attributesFields inherited from class DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jgraph.graph.Port[]Creates the ports for this vertexbooleanTells if this station generates or destroys jobs (useful for blocking region management)Methods inherited from class JmtCell
getIcon, getIconDimension, getPrevParent, getRotationAngle, getSize, getStandardIconDimension, isFreeRotationAllowed, isLeftInputCell, parentChanged, resetParent, setAttributes, setFreeRotationAllowed, setIcon, setIconModifiers, setLeftInputCell, setRotationAngle, updateCellSize, updatePortPositionsMethods inherited from class org.jgraph.graph.DefaultGraphCell
addPort, addPort, addPort, changeAttributes, clone, getAttributes, getChildren, setAttributesMethods inherited from class DefaultMutableTreeNode
add, breadthFirstEnumeration, children, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
-
Field Details
-
ICON
- See Also:
-
-
Constructor Details
-
CacheCell
Creates a graph cell and initializes it with the specified user object.- Parameters:
userObject- an Object provided by the user that constitutes the cell's data
-
-
Method Details
-
createPorts
public org.jgraph.graph.Port[] createPorts()Creates the ports for this vertex- Specified by:
createPortsin classJmtCell- Returns:
- array of ports
-
generateOrDestroyJobs
public boolean generateOrDestroyJobs()Tells if this station generates or destroys jobs (useful for blocking region management)- Overrides:
generateOrDestroyJobsin classJmtCell- Returns:
- true if this station generates or destroy jobs, false otherwise
-