de.jaetzold.art.platform.lego
Class RCX.PollSensorValueDefinition

java.lang.Object
  |
  +--de.jaetzold.art.platform.lego.RCX.PollSensorValueDefinition
All Implemented Interfaces:
RCX.SensorValueDefinition
Direct Known Subclasses:
Mindstorms.LightSensorValueDefinition, Mindstorms.RotationSensorValueDefinition, RCX.BooleanConversionValueDefinition, RCX.MotorSensorValueDefinition, RCX.RawValueDefinition, RCX.StateConversionValueDefinition
Enclosing class:
RCX

public class RCX.PollSensorValueDefinition
extends Object
implements RCX.SensorValueDefinition


Field Summary
protected  ByteArray mapPacket
           
protected  byte[] packet
           
protected  byte sensorNumber
           
 
Constructor Summary
RCX.PollSensorValueDefinition(byte source, byte argument)
           
 
Method Summary
 SensorEvent createEvent(Object oldValue, Object newValue)
           
 boolean equals(Object o)
           
 byte[][] getConfigurePackets()
           
 ByteArray getMapPacket()
           
 byte[] getPacket()
           
 int hashCode()
           
 Object parseResult(byte[] packet)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

packet

protected byte[] packet

sensorNumber

protected byte sensorNumber

mapPacket

protected ByteArray mapPacket
Constructor Detail

RCX.PollSensorValueDefinition

public RCX.PollSensorValueDefinition(byte source,
                                     byte argument)
Method Detail

getPacket

public byte[] getPacket()
Specified by:
getPacket in interface RCX.SensorValueDefinition

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

parseResult

public Object parseResult(byte[] packet)
Specified by:
parseResult in interface RCX.SensorValueDefinition

createEvent

public SensorEvent createEvent(Object oldValue,
                               Object newValue)
Specified by:
createEvent in interface RCX.SensorValueDefinition

getConfigurePackets

public byte[][] getConfigurePackets()
Specified by:
getConfigurePackets in interface RCX.SensorValueDefinition

getMapPacket

public ByteArray getMapPacket()
Specified by:
getMapPacket in interface RCX.SensorValueDefinition