gsim.sim.behaviour
Interface RuleHandler


public interface RuleHandler


Method Summary
 void endEpisode()
          Updates all action-nodes that were executed until now with the current reward (a sort of back-propagation routine which can be called if some connection between atomic decisions is needed).
 void executeUserRules(java.lang.String role, java.util.HashMap globals)
          Executes rules for the current role and time.
 void reset()
          Clear the rulebase from the state of the agent (i.e.
 void startEpisode()
          Start an episode.
 void updateRewards()
           
 

Method Detail

executeUserRules

void executeUserRules(java.lang.String role,
                      java.util.HashMap globals)
Executes rules for the current role and time. Note: The rulebase is not cleared, so only rules will become activated that were defined for this role.

Parameters:
role - String
modelTime - int

reset

void reset()
Clear the rulebase from the state of the agent (i.e. all constants and variables that were in the rulebase are retracted).


updateRewards

void updateRewards()

startEpisode

void startEpisode()
                  throws GSimBehaviourException
Start an episode. An episode is a means to connect several actions with each other. While during an episode actions are updated as usual, a final update will be performed on calling endEpisode(), therefore giving the agent a clue about the causal relationship of a sequence of actions.

Throws:
GSimBehaviourException

endEpisode

void endEpisode()
                throws GSimBehaviourException
Updates all action-nodes that were executed until now with the current reward (a sort of back-propagation routine which can be called if some connection between atomic decisions is needed).

Throws:
GSimBehaviourException