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

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

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

A port for boolean values (used for bumper sensor)

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

Constructor Summary
Boolean_port()
           
 
Method Summary
 void copyValueFrom(giotto.functionality.interfaces.PortVariable source)
          Copies its internal state from a source port variable
 boolean getBoolValue()
          Returns its internal state
 void setBoolValue(boolean value)
          Sets its internal state
 java.lang.String toString()
          Prints its state (boolean value)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Boolean_port

public Boolean_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

getBoolValue

public boolean getBoolValue()
Returns its internal state

Returns:
boolean variable

setBoolValue

public void setBoolValue(boolean value)
Sets its internal state

Parameters:
value - boolean value

toString

public java.lang.String toString()
Prints its state (boolean value)

Overrides:
toString in class java.lang.Object