Class RouterCell
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.jgraph.graph.DefaultGraphCell
jsimgraph.JGraphMod.JmtCell
jsimgraph.JGraphMod.RouterCell
- All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode, org.jgraph.graph.GraphCell
Title: Router Cell
Description: Routes jobs without servicing capability. This special class was introduced to simplify conversion
- Author:
- Bertoli Marco Date: 20-feb-2006 Time: 17.53.21
- 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
ConstructorsConstructorDescriptionRouterCell(Object userObject) Creates a graph cell and initializes it with the specified user object. -
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
-
RouterCell
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
-