ubiware.core.commands
Class RemoveBeliefsN3Command

java.lang.Object
  extended by ubiware.core.commands.RemoveBeliefsN3Command
All Implemented Interfaces:
UbiwareAgentCommand<java.lang.Void>

public class RemoveBeliefsN3Command
extends java.lang.Object
implements UbiwareAgentCommand<java.lang.Void>

Command that removes a belief in N3 notation from the agent.

Author:
Michael Cochez for UBIWARE project
See Also:
18.3.2010

Constructor Summary
RemoveBeliefsN3Command(ubiware.util.saplbuilder.SaplDocument document)
          Make a command with the SaplDocument which will be passed to UbiwareAgent.removeBeliefsN3(String) when this command gets executed.
 
Method Summary
 java.lang.Void getResult()
          Get the result of the action performed.
 void performCommand(UbiwareAgent agent)
          The code which will get executed by the agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveBeliefsN3Command

public RemoveBeliefsN3Command(ubiware.util.saplbuilder.SaplDocument document)
Make a command with the SaplDocument which will be passed to UbiwareAgent.removeBeliefsN3(String) when this command gets executed.

Parameters:
document - the SaplDocument which contains the pattern which will be removed from the agents beliefs.
Method Detail

performCommand

public void performCommand(UbiwareAgent agent)
Description copied from interface: UbiwareAgentCommand
The code which will get executed by the agent.

Specified by:
performCommand in interface UbiwareAgentCommand<java.lang.Void>
Parameters:
agent - The agent which is executing the command

getResult

public java.lang.Void getResult()
Description copied from interface: UbiwareAgentCommand
Get the result of the action performed. If the UbiwareAgentCommand.performCommand(UbiwareAgent) has not been executed, the behavior of this method is undefined.

Specified by:
getResult in interface UbiwareAgentCommand<java.lang.Void>
Returns:
The result of the performed action