art.cs
Class ActionController

java.lang.Object
  extended byart.cs.ActionController
All Implemented Interfaces:
Effector

public class ActionController
extends java.lang.Object
implements Effector

The action controller implements Effector and is the class that build the action messages to be performed in the environment.

Author:
Marco Lamieri and Gianluigi Ferraris

Constructor Summary
ActionController(CsConfiguration conf, java.util.ArrayList msgList)
          Constructor of the class.
 
Method Summary
 int[] getNextAction()
          Used to obtain the next action selected by the cs, codified as an array of integer where the wildcard # (meaning do not care) is the value "2".
 boolean hasNext()
          If there is at least one more action to be evaluated.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionController

public ActionController(CsConfiguration conf,
                        java.util.ArrayList msgList)
Constructor of the class.

Parameters:
conf - Configuration.
msgList - Message list.
Method Detail

getNextAction

public int[] getNextAction()
Description copied from interface: Effector
Used to obtain the next action selected by the cs, codified as an array of integer where the wildcard # (meaning do not care) is the value "2". Each action must be evaluated and reward must be set by CsManager.setReward(double)

Specified by:
getNextAction in interface Effector
Returns:
selected action.

hasNext

public boolean hasNext()
Description copied from interface: Effector
If there is at least one more action to be evaluated.

Specified by:
hasNext in interface Effector
Returns:
if there is one more action.