|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuchicago.src.sim.network.DefaultNode
uchicago.src.sim.network.DefaultDrawableNode
display.Node
display.AgentNode
public class AgentNode
AgentNode type which is a subclass of the Node
Nested Class Summary |
---|
Nested classes/interfaces inherited from class uchicago.src.sim.network.DefaultNode |
---|
uchicago.src.sim.network.DefaultNode.OrderedHashMap |
Field Summary | |
---|---|
private Agent |
agent
Here single individual (agent) is the node |
Fields inherited from class display.Node |
---|
initEdgeStrength, maxDegree |
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 | |
---|---|
AgentNode()
Default constructor |
|
AgentNode(Agent _agent)
Sets agent to its node |
Method Summary | |
---|---|
boolean |
checkFriendshipLimit(AgentNode node)
Check if this node can have an additional friend given the friendship upperlimit. |
boolean |
equals(java.lang.Object o)
This is needed for tests in contains() operation of node lists |
Agent |
getAgent()
Retutrns the agent for this node/ |
void |
meetNeighbor()
Adaptation from the Repast's implementation for JinGirNew Model. |
void |
meetRandom(java.util.ArrayList list)
Adaptation from the Repast's implementation for JinGirNew Model. |
void |
removeFriend()
Adaptation from the Repast's implementation for JinGirNew Model. |
void |
setAgent(Agent agent)
Sets the agent for this node. |
Methods inherited from class display.Node |
---|
clearEdges, constructEdges, constructEdges, getID, getMaxDegree, init, makeEdgeToFrom, makeEdgeToFrom, removeNode, removeRandomLink, setID, setMaxDegree |
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, 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 |
Field Detail |
---|
private Agent agent
Constructor Detail |
---|
public AgentNode()
public AgentNode(Agent _agent)
_agent
- Method Detail |
---|
public Agent getAgent()
public void setAgent(Agent agent)
agent
- public boolean equals(java.lang.Object o)
equals
in class Node
public void meetRandom(java.util.ArrayList list)
list
- public void meetNeighbor()
public void removeFriend()
public boolean checkFriendshipLimit(AgentNode node)
node
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |