Class AgentMsgHelpers.PosMsg

java.lang.Object
  extended by AgentMsgHelpers.PosMsg
All Implemented Interfaces:
IMsg
Enclosing class:
AgentMsgHelpers

public static class AgentMsgHelpers.PosMsg
extends java.lang.Object
implements IMsg

Message class to hold a position in n dimensions


Constructor Summary
AgentMsgHelpers.PosMsg()
           
AgentMsgHelpers.PosMsg(AgentMsgHelpers.PosMsg src)
           
AgentMsgHelpers.PosMsg(double[] arrLfPosArr, int nIdxStart, int nDim)
           
 
Method Summary
 double getDist(AgentMsgHelpers.PosMsg posB)
           
 double getDistSqrd(AgentMsgHelpers.PosMsg posB)
           
 double getPos(int i)
           
 double[] getPosArrCpy()
           
 AgentMsgHelpers.PosMsg makeCopy()
           
 void setPosArr(double[] arrLfPosArr, int nIdxStart, int nDim)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentMsgHelpers.PosMsg

public AgentMsgHelpers.PosMsg()

AgentMsgHelpers.PosMsg

public AgentMsgHelpers.PosMsg(double[] arrLfPosArr,
                              int nIdxStart,
                              int nDim)

AgentMsgHelpers.PosMsg

public AgentMsgHelpers.PosMsg(AgentMsgHelpers.PosMsg src)
Method Detail

makeCopy

public AgentMsgHelpers.PosMsg makeCopy()
Specified by:
makeCopy in interface IMsg

getDistSqrd

public double getDistSqrd(AgentMsgHelpers.PosMsg posB)

getDist

public double getDist(AgentMsgHelpers.PosMsg posB)

getPos

public double getPos(int i)

getPosArrCpy

public double[] getPosArrCpy()

setPosArr

public void setPosArr(double[] arrLfPosArr,
                      int nIdxStart,
                      int nDim)