de.jaetzold.art
Class CountSensor.CountSensorPort

java.lang.Object
  |
  +--de.jaetzold.art.platform.BaseSensorPort
        |
        +--de.jaetzold.art.CountSensor.CountSensorPort
All Implemented Interfaces:
Port, SensorPort
Enclosing class:
CountSensor

public class CountSensor.CountSensorPort
extends BaseSensorPort

A SensorPort for the count-value. This is only useful if a subclass affects the value the getValue()-method returns. This way the original count-value can always be acessed.

See Also:
RawSensor.ValueSensorPort, CountSensor.getCountSensorPort()

Fields inherited from class de.jaetzold.art.platform.BaseSensorPort
excludedPorts, granularity, identifier, iface, maximumValue, minimumValue, portNumber
 
Constructor Summary
CountSensor.CountSensorPort()
           
 
Method Summary
 SensorPeer getPeerFor(Sensor sensor)
          This is the Factory-method for creating peers.
 
Methods inherited from class de.jaetzold.art.platform.BaseSensorPort
conformsTo, connectWith, disconnect, equals, getExcludedPorts, getGranularity, getMaximumValue, getMinimumValue, getPortID, getPortNumber, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CountSensor.CountSensorPort

public CountSensor.CountSensorPort()
Method Detail

getPeerFor

public SensorPeer getPeerFor(Sensor sensor)
Description copied from class: BaseSensorPort
This is the Factory-method for creating peers. It must be implemented by non-abstract subclasses.
Overrides:
getPeerFor in class BaseSensorPort
Following copied from interface: de.jaetzold.art.SensorPort
See Also:
SensorPort.connectWith(Sensor), RawSensor.connectWith(SensorPort)