atomicActions
Class ConfirmTraining

Package class diagram package ConfirmTraining
java.lang.Object
  extended by atomicActions.AtomicAction
      extended by atomicActions.ConfirmTraining
All Implemented Interfaces:
Serializable

public class ConfirmTraining
extends AtomicAction
implements Serializable

Confirms that he goes to the training -> means he goes to the computer and "sends" a message on the forum to notify his team mates that he is coming to the training

Author:
Ondrej
See Also:
Serialized Form

Field Summary
 
Fields inherited from class atomicActions.AtomicAction
actionStart, agent, attractivity, counter, dModule, location, parent, type
 
Constructor Summary
ConfirmTraining(Action parent, Bot agent)
           
 
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  String getEnvironmentAction()
           
 boolean succeeded()
          succeeds when message sended - can be more profound with some hand shake...
 
Methods inherited from class atomicActions.AtomicAction
checkIfOnThePlace, echoAction, equals, hashCode, initialisation, logFinished, terminalisation, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfirmTraining

public ConfirmTraining(Action parent,
                       Bot agent)
Method Detail

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:

getEnvironmentAction

protected String getEnvironmentAction()
Overrides:
getEnvironmentAction in class AtomicAction

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


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