|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
fr.lifl.jedi.gui.display.interactionDisplayer.model.tree.PerformedInteractionsDisplayableNode
fr.lifl.jedi.gui.display.interactionDisplayer.model.tree.PerformedInteractionsFamilyNode
public class PerformedInteractionsFamilyNode
A node that represents the interactions performed by the different instances of a particular agent family.
JEDI V 2.3 | |
Created the 15th June 2009 | Modified the 25th January 2010 |
Yoann Kubera |
SMAC Team (Systèmes Multi-Agents et Comportement) |
LIFL (Laboratoire d'Informatique Fondamentale de Lille) |
University of Lille, France |
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
PerformedInteractionsFamilyNode(java.lang.Class<?> family)
The family of the instances for which performed interactions are displayed. |
Method Summary | |
---|---|
void |
afterUpdate(int step)
This method has to be called after the update of this node. |
void |
beforeUpdate()
This method has to be called before the update of this node. |
void |
buildTreeAccordingToOptions(OptionsModel model,
int step)
Builds the tree according to the options provided in the model. |
OrderedComboBoxModel |
getAliveAgents()
Gets the set of alive agents that are involved in the simulation. |
OrderedComboBoxModel |
getAllAgents()
Gets the set of all agents that where involved in the simulation. |
java.lang.Class<?> |
getFamily()
Gets the family represented by this node. |
PerformedInteractionsInstanceNode |
getNodeForInstance(Agent a)
Gets the node that represents the data of a particular agent. |
void |
setAlive(Agent a,
int step)
Tells the node that an agent instance is alive. |
void |
updateAgentSourceParticipation(Agent a,
AbstractRealizableTuple<?> tuple,
int step)
Updates the data of an agent, in the case where that agent was the source of a particular interaction. |
void |
updateAgentTargetParticipation(Agent a,
AbstractRealizableTuple<?> tuple,
int step)
Updates the data of an agent, in the case where that agent was the target of a particular interaction. |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, clone, 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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PerformedInteractionsFamilyNode(java.lang.Class<?> family)
family
- the family of the instances for which performed interactions are displayed.Method Detail |
---|
public PerformedInteractionsInstanceNode getNodeForInstance(Agent a)
a
- The agent for which the node is retrieved.
public java.lang.Class<?> getFamily()
public OrderedComboBoxModel getAllAgents()
public OrderedComboBoxModel getAliveAgents()
public void beforeUpdate()
public void setAlive(Agent a, int step)
a
- The agent to tag as alive.public void updateAgentSourceParticipation(Agent a, AbstractRealizableTuple<?> tuple, int step)
a
- The agent that was the source of an interaction. Its family must be equal to the value returned by
method getFamily()
.tuple
- The tuple that represents the interaction the agent performed.step
- The simulation step during which the interaction occurred.public void updateAgentTargetParticipation(Agent a, AbstractRealizableTuple<?> tuple, int step)
a
- The agent that was the target of an interaction. Its family must be equal to the value returned by
method getFamily()
.tuple
- The tuple that represents the interaction the agent undergone.step
- The simulation step during which the interaction occurred.public void afterUpdate(int step)
step
- The simulation step for which the update was made.public void buildTreeAccordingToOptions(OptionsModel model, int step)
PerformedInteractionsDisplayableNode
buildTreeAccordingToOptions
in class PerformedInteractionsDisplayableNode
model
- The model in which display options are stored.step
- The current time step of the simulation.PerformedInteractionsDisplayableNode.buildTreeAccordingToOptions(fr.lifl.jedi.gui.display.interactionDisplayer.model.OptionsModel, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |