ubiware.core.commands
Interface UbiwareAgentCommand<E>

All Known Implementing Classes:
AddBeliefsN3Command, BlockingCommand, HasBeliefsN3Command, RemoveBeliefsN3Command

public interface UbiwareAgentCommand<E>

The interface all commands have to implement A command is a piece of code which will be scheduled in the agents own thread. It is not always needed to implement the methods directly. Use the derived classes instead. 15.3.2010

Author:
Michael Cochez for UBIWARE project

Method Summary
 E getResult()
          Get the result of the action performed.
 void performCommand(UbiwareAgent agent)
          The code which will get executed by the agent.
 

Method Detail

performCommand

void performCommand(UbiwareAgent agent)
The code which will get executed by the agent.

Parameters:
agent - The agent which is executing the command

getResult

E getResult()
Get the result of the action performed. If the performCommand(UbiwareAgent) has not been executed, the behavior of this method is undefined.

Returns:
The result of the performed action