tfg.lejos
Class ArbitratorEx

java.lang.Object
  extended by tfg.lejos.ArbitratorEx

public class ArbitratorEx
extends Object

Arbitrador, responsável pelo gerenciamento de qual comportamento
deve assumir o controle.

Author:
crawford (LeJOS Forum)

Field Summary
private  Behavior[] behaviors
           
private  int currentBehaviorIndex
           
static int NONE
           
 
Constructor Summary
ArbitratorEx(Behavior[] behaviors)
           
 
Method Summary
 Behavior[] getBehaviors()
           
 int getCurrentBehaviorIndex()
           
 void setCurrentBehaviorIndex(int currentBehaviorIndex)
           
 void start(Monitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static int NONE

currentBehaviorIndex

private int currentBehaviorIndex

behaviors

private Behavior[] behaviors
Constructor Detail

ArbitratorEx

public ArbitratorEx(Behavior[] behaviors)
Method Detail

getBehaviors

public Behavior[] getBehaviors()

setCurrentBehaviorIndex

public void setCurrentBehaviorIndex(int currentBehaviorIndex)

getCurrentBehaviorIndex

public int getCurrentBehaviorIndex()

start

public void start(Monitor monitor)