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

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

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

A port for buffered images (used for camera sensor)

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

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

Constructor Detail

BufferedImage_port

public BufferedImage_port()
Method Detail

copyValueFrom

public void copyValueFrom(giotto.functionality.interfaces.PortVariable source)
Copies its internal state from a source port variable. WARNING: here a deep copy would be more secure, but a shallow copy is sufficient, because our ImageAcquisition alwas delivers new instances

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

getImage

public java.awt.image.BufferedImage getImage()
Returns its internal state

Returns:
buffered image (from camera)

setImage

public void setImage(java.awt.image.BufferedImage value)
Sets internal state

Parameters:
value - buffered image from camera

toString

public java.lang.String toString()
Prints its state (BufferedImage)

Overrides:
toString in class java.lang.Object