de.cesr.more.testing.testutils
Class MTestGraphs.MTestNode

java.lang.Object
  extended by de.cesr.more.testing.testutils.MTestGraphs.MTestNode
All Implemented Interfaces:
MoreNodeMeasureSupport, MoreMilieuAgent
Enclosing class:
MTestGraphs

public static class MTestGraphs.MTestNode
extends Object
implements MoreNodeMeasureSupport, MoreMilieuAgent


Field Summary
protected  MNodeMeasures measures
           
 
Constructor Summary
MTestGraphs.MTestNode()
           
MTestGraphs.MTestNode(int milieu)
           
 
Method Summary
 String getAgentId()
          The agent's ID
 int getId()
           
 int getMilieuGroup()
          Return the milieu group index (starting with 1)
 Number getNetworkMeasureObject(MoreNetwork<? extends MoreNodeMeasureSupport,?> network, MMeasureDescription key)
          Returns the value-object of this vertex for the network measure identified by the network measure key with the network this measure is associated with.
 repast.simphony.context.Context<?> getParentContext()
          Mostly the group context this agent belongs to
 void setNetworkMeasureObject(MoreNetwork<? extends MoreNodeMeasureSupport,?> network, MMeasureDescription key, Number value)
          Sets the value-object of this vertex for the network measure identified by the network measure key with the network this measure is associated with.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

measures

protected MNodeMeasures measures
Constructor Detail

MTestGraphs.MTestNode

public MTestGraphs.MTestNode()

MTestGraphs.MTestNode

public MTestGraphs.MTestNode(int milieu)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getId

public int getId()

getNetworkMeasureObject

public Number getNetworkMeasureObject(MoreNetwork<? extends MoreNodeMeasureSupport,?> network,
                                      MMeasureDescription key)
Description copied from interface: MoreNodeMeasureSupport
Returns the value-object of this vertex for the network measure identified by the network measure key with the network this measure is associated with.

Specified by:
getNetworkMeasureObject in interface MoreNodeMeasureSupport
Parameters:
network - The Network the measure value to set is associated with
key - The Key that identifies the measure to set
Returns:
value The Value of this vertex for the given network measure key, null if the specified measure key has not been set.
See Also:
MoreNodeMeasureSupport.getNetworkMeasureObject(de.cesr.more.basic.network.MoreNetwork, de.cesr.more.measures.MMeasureDescription)

setNetworkMeasureObject

public void setNetworkMeasureObject(MoreNetwork<? extends MoreNodeMeasureSupport,?> network,
                                    MMeasureDescription key,
                                    Number value)
Description copied from interface: MoreNodeMeasureSupport
Sets the value-object of this vertex for the network measure identified by the network measure key with the network this measure is associated with.

Specified by:
setNetworkMeasureObject in interface MoreNodeMeasureSupport
Parameters:
network - The Network the measure value to set is associated with
key - The Key that identifies the measure to set
value - Value-object of measure to set
See Also:
de.cesr.more.measures.node.MoreNodeMeasureSupport#setNetworkMeasureObject(de.cesr.more.basic.network.MoreNetwork, de.cesr.more.measures.MMeasureDescription, java.lang.Object)

getMilieuGroup

public int getMilieuGroup()
Description copied from interface: MoreMilieuAgent
Return the milieu group index (starting with 1)

Specified by:
getMilieuGroup in interface MoreMilieuAgent
Returns:
See Also:
MoreMilieuAgent.getMilieuGroup()

getParentContext

public repast.simphony.context.Context<?> getParentContext()
Description copied from interface: MoreMilieuAgent
Mostly the group context this agent belongs to

Specified by:
getParentContext in interface MoreMilieuAgent
Returns:
the parent context
See Also:
MoreMilieuAgent.getParentContext()

getAgentId

public String getAgentId()
Description copied from interface: MoreMilieuAgent
The agent's ID

Specified by:
getAgentId in interface MoreMilieuAgent
Returns:
id
See Also:
MoreMilieuAgent.getAgentId()