|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.ac.sbg.cosy.soccerbot.controller.Controller_State_port
public class Controller_State_port
A port for transfering internal state information of the controller between cycles consists of an (int _state, byte _lastCommand) tuple
Field Summary | |
---|---|
static int |
FOUND_CAUGHT
ball found and caught |
static int |
FOUND_CENTER
ball found in center |
static int |
FOUND_LEFT
ball found in left part of the image |
static int |
FOUND_RIGHT
ball found in right part of the image |
static int |
SEARCH_LEFT_TURN
searching for the ball turning left |
static int |
SEARCH_RIGHT_TURN
searching for the ball turning right |
Constructor Summary | |
---|---|
Controller_State_port()
|
Method Summary | |
---|---|
void |
copyValueFrom(giotto.functionality.interfaces.PortVariable source)
Copies its internal state from a source port variable. |
byte |
getLastCommand()
Returns last command |
int |
getState()
Returns state |
void |
setLastCommand(byte newCommand)
Sets last command |
void |
setState(int newState)
Sets state |
java.lang.String |
toString()
Prints internal state |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FOUND_CENTER
public static final int FOUND_LEFT
public static final int FOUND_RIGHT
public static final int FOUND_CAUGHT
public static final int SEARCH_LEFT_TURN
public static final int SEARCH_RIGHT_TURN
Constructor Detail |
---|
public Controller_State_port()
Method Detail |
---|
public void copyValueFrom(giotto.functionality.interfaces.PortVariable source)
copyValueFrom
in interface giotto.functionality.interfaces.PortVariable
public int getState()
public void setState(int newState)
newState
- new controller statepublic byte getLastCommand()
public void setLastCommand(byte newCommand)
newCommand
- last rcxcommand.CommandEventpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |