atomicActions
Class Follow
java.lang.Object
atomicActions.AtomicAction
atomicActions.Follow
- All Implemented Interfaces:
- Serializable
public class Follow
- extends AtomicAction
- implements Serializable
Sends FOLLOW to the global message channel thus provoking the Commandable bot to follow him, thought there
should be some kind of handshake, where the commandable bot would send a confirmation of the reception -> e.g. when he
spots the agent (when bot is sending it he only sees the commandable bot, not necesarily vice versa)
- Author:
- Ondrej
- See Also:
- Serialized Form
|
Method Summary |
void |
execute()
executes the atomic action, typicaly writes something to log, change agent name, so we can see
in the environment what is he doing, raise counter |
boolean |
failed()
Note that if it returns false, it doesn't mean that it succeeded, it means that it just hasn't finished yet. |
protected void |
initialisation()
initialization which has to be done prior first execution of atomic action |
boolean |
succeeded()
succeeds when message sended - can be more profound with some hand shake... |
Follow
public Follow(Action parent,
Bot agent)
execute
public void execute()
- Description copied from class:
AtomicAction
- executes the atomic action, typicaly writes something to log, change agent name, so we can see
in the environment what is he doing, raise counter
- Overrides:
execute in class AtomicAction
succeeded
public boolean succeeded()
- succeeds when message sended - can be more profound with some hand shake...
- Overrides:
succeeded in class AtomicAction
- Returns:
failed
public boolean failed()
- Description copied from class:
AtomicAction
- Note that if it returns false, it doesn't mean that it succeeded, it means that it just hasn't finished yet.
- Overrides:
failed in class AtomicAction
- Returns:
- true if the atomic action failed - usualy timeouted, false if not
initialisation
protected void initialisation()
- Description copied from class:
AtomicAction
- initialization which has to be done prior first execution of atomic action
- Overrides:
initialisation in class AtomicAction
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.