|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectubiware.core.commands.HasBeliefsN3Command
public class HasBeliefsN3Command
Command that checks whether an agent has a belief in N3 notation. When delegated, checking the getResult() only makes sense when
it's for sure that performCommand has been executed. This means : use this Command only in a BlockingCommand wrapper!
15.3.2010| Constructor Summary | |
|---|---|
HasBeliefsN3Command(ubiware.util.saplbuilder.SaplDocument document)
Create the command with a String which will be passed to UbiwareAgent.hasBeliefsN3(String) when the command gets executed. |
|
| Method Summary | |
|---|---|
BindingsSet |
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 |
|---|
public HasBeliefsN3Command(ubiware.util.saplbuilder.SaplDocument document)
UbiwareAgent.hasBeliefsN3(String) when the command gets executed.
document - The SaplDocument which will be used to query the agents beliefs.| Method Detail |
|---|
public void performCommand(UbiwareAgent agent)
UbiwareAgentCommand
performCommand in interface UbiwareAgentCommand<BindingsSet>agent - The agent which is executing the commandpublic BindingsSet getResult()
UbiwareAgentCommandUbiwareAgentCommand.performCommand(UbiwareAgent) has not been executed, the behavior of this
method is undefined.
getResult in interface UbiwareAgentCommand<BindingsSet>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||