cz.cmc.tcgui
Class ClassfulQDisc

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byorg.jgraph.graph.DefaultGraphCell
          extended bycz.cmc.tcgui.TCObject
              extended bycz.cmc.tcgui.QDisc
                  extended bycz.cmc.tcgui.ClassfulQDisc
All Implemented Interfaces:
Cloneable, FilterContainer, org.jgraph.graph.GraphCell, MutableTreeNode, Serializable, SubclassableTCObject, TCObjectContainer, TreeNode

public class ClassfulQDisc
extends QDisc
implements FilterContainer, SubclassableTCObject

Title: ClassfulQDisc

Description: class representing classful queuing disciplines and the appropriate graph cell model

Copyright: Copyright (c) 2003

Company: CMC Computers

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jgraph.graph.DefaultGraphCell
org.jgraph.graph.DefaultGraphCell.ValueChangeHandler
 
Field Summary
protected  SubclassOutputPort subclassOutputPort
          Subclass output port of this qdisc
 
Fields inherited from class cz.cmc.tcgui.QDisc
qDiscInputPort
 
Fields inherited from class org.jgraph.graph.DefaultGraphCell
attributes, defaultBounds
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, EMPTY_ENUMERATION, children, parent, userObject
 
Constructor Summary
ClassfulQDisc()
          Create a new classful qdisc using defaults.
ClassfulQDisc(Object userObject)
          Create a new classful qdisc using specified user object and defaults otherwise.
 
Method Summary
 TCObjectView createDefaultView(TCGraph g, org.jgraph.graph.CellMapper cm)
          Creates and returns appropriate view for this cell.
 void createInsertEdit(List toInsert, Map viewMap, TCGraph graph)
          Insert into list additional cells to be created with this TCObject and inserts their attributes to the viewMap.
 SubclassOutputPort getSubclassOutputPort()
           
 TCOutputPort getTCOutputPort()
           
 
Methods inherited from class cz.cmc.tcgui.QDisc
getQDiscInputPort, getTCInputPort
 
Methods inherited from class cz.cmc.tcgui.TCObject
getID
 
Methods inherited from class org.jgraph.graph.DefaultGraphCell
clone, cloneUserObject, getAttributes, getChildren, changeAttributes, setAttributes, setUserObject
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, depthFirstEnumeration, getAllowsChildren, getDepth, getFirstChild, getFirstLeaf, getChildAfter, getChildAt, getChildBefore, getChildCount, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, children, insert, isLeaf, isNodeAncestor, isNodeDescendant, isNodeChild, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

subclassOutputPort

protected SubclassOutputPort subclassOutputPort
Subclass output port of this qdisc

Constructor Detail

ClassfulQDisc

public ClassfulQDisc()
Create a new classful qdisc using defaults.


ClassfulQDisc

public ClassfulQDisc(Object userObject)
Create a new classful qdisc using specified user object and defaults otherwise.

Method Detail

getSubclassOutputPort

public SubclassOutputPort getSubclassOutputPort()
Specified by:
getSubclassOutputPort in interface SubclassableTCObject
Returns:
subclass output port of this qdisc

getTCOutputPort

public TCOutputPort getTCOutputPort()
Specified by:
getTCOutputPort in class TCObject
Returns:
TCOutputPort for the Tree part of the schema

createInsertEdit

public void createInsertEdit(List toInsert,
                             Map viewMap,
                             TCGraph graph)
Insert into list additional cells to be created with this TCObject and inserts their attributes to the viewMap. Intended for Graphmodel.insert.

Overrides:
createInsertEdit in class QDisc
Parameters:
toInsert - List of additional cells to be created with this TCObject
viewMap - attributes to be supplied to their views

createDefaultView

public TCObjectView createDefaultView(TCGraph g,
                                      org.jgraph.graph.CellMapper cm)
Creates and returns appropriate view for this cell.

Specified by:
createDefaultView in class QDisc