commlib.task
クラス TaskMessage

java.lang.Object
  上位を拡張 commlib.message.RCRSCSMessage
      上位を拡張 commlib.task.TaskMessage
すべての実装されたインタフェース:
IMessage, ITaskMessage
直系の既知のサブクラス:
AmbulanceTeamTaskMessage, DecideLeaderTaskMessage, FireBrigadeTaskMessage, MoveTaskMessage, MoveWithStagingPostTaskMessage, PoliceForceTaskMessage, RestAtRefugeTaskMessage, RestTaskMessage, ScoutAreaTaskMessage

public abstract class TaskMessage
extends RCRSCSMessage
implements ITaskMessage

The TaskMessage is the message class express the task.

作成者:
takefumi

コンストラクタの概要
TaskMessage(BaseMessageType type, int time, rescuecore2.worldmodel.EntityID ownerID)
          ConstructorCreate the task.
TaskMessage(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.
 
メソッドの概要
 rescuecore2.worldmodel.EntityID getAssignedAgentID()
          Return EntityID of rescue agent that have to execute this task.
 rescuecore2.worldmodel.EntityID getMessageOwnerID()
          Return EntityID of the agent that sent this message.
 
クラス commlib.message.RCRSCSMessage から継承されたメソッド
equals, getData, getMessageBitSize, getMessageType, getSendTime, hashCode, isSendable, setData, setData
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TaskMessage

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

Constructor

Create the task.

パラメータ:
type -
time -
ownerID -

TaskMessage

public TaskMessage(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.

パラメータ:
type -
bitList -
offset -
bitSizeMap -
メソッドの詳細

getAssignedAgentID

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

定義:
インタフェース ITaskMessage 内の getAssignedAgentID
戻り値:
EntityID of rescue agent

getMessageOwnerID

public rescuecore2.worldmodel.EntityID getMessageOwnerID()
Return EntityID of the agent that sent this message.

戻り値:
EntityID of the agent(at, ac, pf, po, fb, fs)