org.keridwen.core.data.storage.packet
Class DoubleAccessor

java.lang.Object
  extended by org.keridwen.core.data.storage.packet.DoubleAccessor
All Implemented Interfaces:
Accessor<Double>, AccessorSafe<Double>

public class DoubleAccessor
extends Object
implements AccessorSafe<Double>

Author:
JeT - Artenum, Benoit Thiebault - Artenum

Constructor Summary
DoubleAccessor()
           
 
Method Summary
 Double getContent()
           
 Class<?>[] getDataTypes()
          get the list of data types this accessor can manage
 AccessorId getId()
          Get the Id
 AccessorMode getMode()
          tell if the accessor is safe or not
 void readSafe(DataPacketSafe<Double> packet)
          read data from a DataPacket in safe mode
 void safeWrite(DataPacketSafe<Double> packet)
          write data to the DataPacket in safe mode
 void setContent(Double value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleAccessor

public DoubleAccessor()
Method Detail

getId

public AccessorId getId()
Description copied from interface: Accessor
Get the Id

Specified by:
getId in interface Accessor<Double>
See Also:
Accessor.getId()

getDataTypes

public Class<?>[] getDataTypes()
Description copied from interface: Accessor
get the list of data types this accessor can manage

Specified by:
getDataTypes in interface Accessor<Double>
See Also:
Accessor.getDataTypes()

readSafe

public void readSafe(DataPacketSafe<Double> packet)
              throws DataIOException
Description copied from interface: AccessorSafe
read data from a DataPacket in safe mode

Specified by:
readSafe in interface AccessorSafe<Double>
Throws:
DataIOException
See Also:
org.keridwen.core.data.storage.packet.Accessor#read(org.keridwen.core.data.storage.packet.DataPacket)

safeWrite

public void safeWrite(DataPacketSafe<Double> packet)
               throws DataIOException
Description copied from interface: AccessorSafe
write data to the DataPacket in safe mode

Specified by:
safeWrite in interface AccessorSafe<Double>
Throws:
DataIOException
See Also:
org.keridwen.core.data.storage.packet.Accessor#write(org.keridwen.core.data.storage.packet.DataPacket)

getContent

public Double getContent()
Specified by:
getContent in interface AccessorSafe<Double>
Returns:
the value

setContent

public void setContent(Double value)
Specified by:
setContent in interface AccessorSafe<Double>
Parameters:
value - the value to set

getMode

public AccessorMode getMode()
Description copied from interface: Accessor
tell if the accessor is safe or not

Specified by:
getMode in interface Accessor<Double>
See Also:
org.keridwen.core.data.storage.packet.Accessor#isSafe()


Copyright © 2010-2013 Artenum. All Rights Reserved.