uchicago.src.repastdemos.jain
Class JainNode

java.lang.Object
  extended by uchicago.src.sim.network.DefaultNode
      extended by uchicago.src.sim.network.DefaultDrawableNode
          extended by uchicago.src.repastdemos.jain.JainNode
All Implemented Interfaces:
Drawable2DGridNode, DrawableNonGridNode, Moveable, NonGridDrawable, Node

public class JainNode
extends DefaultDrawableNode


Nested Class Summary
 
Nested classes/interfaces inherited from class uchicago.src.sim.network.DefaultNode
DefaultNode.OrderedHashMap
 
Field Summary
 
Fields inherited from class uchicago.src.sim.network.DefaultDrawableNode
item
 
Fields inherited from class uchicago.src.sim.network.DefaultNode
inEdges, inMap, label, outEdges, outMap
 
Constructor Summary
JainNode()
           
JainNode(int x, int y, float pop, java.lang.String label)
           
JainNode(int x, int y, java.lang.String label)
           
 
Method Summary
 void calcPop(java.util.ArrayList nodeSet)
           
 float getPop()
           
 void init(int x, int y, java.lang.String label)
           
 void makeEdgeTo(DefaultNode node, float strength, java.awt.Color color)
           
 void setPop(float pop)
           
 void updatePop()
           
 
Methods inherited from class uchicago.src.sim.network.DefaultDrawableNode
allowResizing, calcSize, contains, draw, getBorderColor, getBorderWidth, getColor, getFont, getHeight, getLabelColor, getNode, getWidth, getX, getY, setBorderColor, setBorderWidth, setColor, setDrawable, setDrawableNoCopy, setFont, setHeight, setLabelColor, setNodeLabel, setWidth, setX, setX, setY, setY
 
Methods inherited from class uchicago.src.sim.network.DefaultNode
addInEdge, addInEdges, addOutEdge, addOutEdges, clearInEdges, clearOutEdges, getEdgesFrom, getEdgesTo, getFromNodes, getId, getInDegree, getInEdges, getInNodes, getNodeLabel, getNumInEdges, getNumOutEdges, getOutDegree, getOutEdges, getOutNodes, getRandomFromNode, getRandomNodeIn, getRandomNodeOut, getRandomToNode, getToNodes, hasEdgeFrom, hasEdgeTo, hasEdgeToOrFrom, makeRandomInEdge, makeRandomOutEdge, removeEdgesFrom, removeEdgesTo, removeInEdge, removeOutEdge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uchicago.src.sim.gui.DrawableNonGridNode
getOutEdges
 
Methods inherited from interface uchicago.src.sim.gui.Drawable2DGridNode
getOutEdges
 

Constructor Detail

JainNode

public JainNode()

JainNode

public JainNode(int x,
                int y,
                java.lang.String label)

JainNode

public JainNode(int x,
                int y,
                float pop,
                java.lang.String label)
Method Detail

init

public void init(int x,
                 int y,
                 java.lang.String label)

getPop

public float getPop()

setPop

public void setPop(float pop)

makeEdgeTo

public void makeEdgeTo(DefaultNode node,
                       float strength,
                       java.awt.Color color)

calcPop

public void calcPop(java.util.ArrayList nodeSet)

updatePop

public void updatePop()