at.ac.sbg.cosy.soccerbot.controller
Class Byte_port

java.lang.Object
  extended by at.ac.sbg.cosy.soccerbot.controller.Byte_port
All Implemented Interfaces:
giotto.functionality.interfaces.PortVariable, java.io.Serializable

public class Byte_port
extends java.lang.Object
implements giotto.functionality.interfaces.PortVariable, java.io.Serializable

A port for transfering a byte message.

Author:
Peter Wild, Krystian Szczurek, Georg Klima
See Also:
Serialized Form

Constructor Summary
Byte_port()
           
 
Method Summary
 void copyValueFrom(giotto.functionality.interfaces.PortVariable source)
          Copies its internal state from a source port variable
 byte getByteValue()
          Returns its internal state
 void setByteValue(byte value)
          Sets its internal state
 java.lang.String toString()
          Prints its state (byte value interpreted as rcxdrive.CommandEvent)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Byte_port

public Byte_port()
Method Detail

copyValueFrom

public void copyValueFrom(giotto.functionality.interfaces.PortVariable source)
Copies its internal state from a source port variable

Specified by:
copyValueFrom in interface giotto.functionality.interfaces.PortVariable

getByteValue

public byte getByteValue()
Returns its internal state

Returns:
byte value (from controller)

setByteValue

public void setByteValue(byte value)
Sets its internal state

Parameters:
value - byte value

toString

public java.lang.String toString()
Prints its state (byte value interpreted as rcxdrive.CommandEvent)

Overrides:
toString in class java.lang.Object