cz.cuni.amis.pogamut.defcon.communication.mailbox
Interface IMailBox

Package class diagram package IMailBox
All Known Implementing Classes:
MailBox

public interface IMailBox

Interface for a mailbox lower level AIs can use to communicate.

Author:
Radek 'Black_Hand' Pibil

Method Summary
 void mail(Class<? extends IUnitAI> targetAIClass, IMessage message)
          Sends a message to all AIs of a given class.
 void mail(IUnitAI ai, IMessage message)
          Sends a message to a specific AI.
 void mail(WorldObjectId targetId, IMessage message)
          Sends a message to a specific AI controlling a unit or fleet with a given WorldObjectId.
 void registerAI(IUnitAI ai)
          Registers an AI for mail.
 void unregisterAI(IUnitAI ai)
          Registers an AI for mail.
 

Method Detail

mail

void mail(Class<? extends IUnitAI> targetAIClass,
          IMessage message)
Sends a message to all AIs of a given class.

Parameters:
targetAIClass -
message -

mail

void mail(WorldObjectId targetId,
          IMessage message)
Sends a message to a specific AI controlling a unit or fleet with a given WorldObjectId.

Parameters:
targetId -
message -

mail

void mail(IUnitAI ai,
          IMessage message)
Sends a message to a specific AI.

Parameters:
ai -
message -

registerAI

void registerAI(IUnitAI ai)
Registers an AI for mail.

Parameters:
ai -

unregisterAI

void unregisterAI(IUnitAI ai)
Registers an AI for mail.

Parameters:
ai -


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.