jp.ac.nagoyau.is.ss.kishii.suntori.message.information
Class TransferInformation

java.lang.Object
  extended by jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage
      extended by jp.ac.nagoyau.is.ss.kishii.suntori.message.information.WorldInformation
          extended by jp.ac.nagoyau.is.ss.kishii.suntori.message.information.TransferInformation
All Implemented Interfaces:
IMessage

public class TransferInformation
extends WorldInformation

This class represent the information of pathway of the rescue angets.

Author:
takefumi

Field Summary
 
Fields inherited from class jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage
COMMON_DATA_TYPE, data, messageType
 
Constructor Summary
TransferInformation(int time, rescuecore2.worldmodel.EntityID platoonID, rescuecore2.worldmodel.EntityID... areas)
          Constructor
TransferInformation(int time, rescuecore2.worldmodel.EntityID platoonID, java.util.List<rescuecore2.worldmodel.EntityID> areas)
          Constructor
TransferInformation(java.util.List<java.lang.Integer> bitList, int offset, java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
          The method that the library use to convert the message.
 
Method Summary
 rescuecore2.worldmodel.EntityID getAgentID()
          Return EntityID of the rescue agent.
 rescuecore2.worldmodel.EntityID getEntityID()
           
 java.util.List<rescuecore2.worldmodel.EntityID> getPathway()
          Return the rescue agent's pathway
 
Methods inherited from class jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage
equals, getBrokenness, getBuriedness, getCoodinate, getDamage, getData, getData, getDataTypeArray, getEntityIDList, getFieryness, getHP, getID, getMessageBitSize, getMessageType, getRepairCost, getSendTime, getSendTime, getWater, getWaterPower, hashCode, isSendable, setCoorinate, setData, setData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferInformation

public TransferInformation(int time,
                           rescuecore2.worldmodel.EntityID platoonID,
                           rescuecore2.worldmodel.EntityID... areas)

Constructor

Create the information of the agent's pathway.
Included data are follow.

Parameters:
time - step num
platoonID - EntityID of the rescue agent
areas - areas that the agent passed

TransferInformation

public TransferInformation(int time,
                           rescuecore2.worldmodel.EntityID platoonID,
                           java.util.List<rescuecore2.worldmodel.EntityID> areas)

Constructor

Create the information of the agent's pathway.
Included data are follow.

Parameters:
time - step num
platoonID - EntityID of the rescue agent
areas - List of the agent's pathway(List<EntityID)

TransferInformation

public TransferInformation(java.util.List<java.lang.Integer> bitList,
                           int offset,
                           java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
The method that the library use to convert the message.

Parameters:
bitList -
offset -
bitSizeMap -
Method Detail

getAgentID

public rescuecore2.worldmodel.EntityID getAgentID()
Return EntityID of the rescue agent.

Returns:
EntityID

getPathway

public java.util.List<rescuecore2.worldmodel.EntityID> getPathway()
Return the rescue agent's pathway

Returns:
EntityID list of areas

getEntityID

public rescuecore2.worldmodel.EntityID getEntityID()
Specified by:
getEntityID in class WorldInformation