jp.ac.nagoyau.is.ss.kishii.suntori.message.task.at
Class AmbulanceTeamTaskMessage

java.lang.Object
  extended by jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage
      extended by jp.ac.nagoyau.is.ss.kishii.suntori.message.task.TaskMessage
          extended by jp.ac.nagoyau.is.ss.kishii.suntori.message.task.at.AmbulanceTeamTaskMessage
All Implemented Interfaces:
IMessage, ITaskMessage
Direct Known Subclasses:
RescueAreaTaskMessage

public abstract class AmbulanceTeamTaskMessage
extends TaskMessage

The class represent the Task for ambulance team agent.

Author:
takefumi

Field Summary
 
Fields inherited from class jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage
COMMON_DATA_TYPE, data, messageType
 
Constructor Summary
AmbulanceTeamTaskMessage(BaseMessageType type, int time, rescuecore2.worldmodel.EntityID ownerID, rescuecore2.worldmodel.EntityID atID)
          Constructor
AmbulanceTeamTaskMessage(BaseMessageType type, 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 getAssignedAgentID()
          Return EntityID of AT that have to execute this task.
 
Methods inherited from class jp.ac.nagoyau.is.ss.kishii.suntori.message.task.TaskMessage
getMessageOwnerID, setEntityIDListData
 
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

AmbulanceTeamTaskMessage

public AmbulanceTeamTaskMessage(BaseMessageType type,
                                int time,
                                rescuecore2.worldmodel.EntityID ownerID,
                                rescuecore2.worldmodel.EntityID atID)

Constructor

Create the message to give instructions to AT.
Included data are follow.

Parameters:
type - message type
time - step num
atID - EntityID of AT

AmbulanceTeamTaskMessage

public AmbulanceTeamTaskMessage(BaseMessageType type,
                                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:
type -
bitList -
offset -
bitSizeMap -
Method Detail

getAssignedAgentID

public rescuecore2.worldmodel.EntityID getAssignedAgentID()
Return EntityID of AT that have to execute this task.

Specified by:
getAssignedAgentID in interface ITaskMessage
Overrides:
getAssignedAgentID in class TaskMessage
Returns:
EntityID of AT