fr.velossity.sample.device
Interface Device


public interface Device

Device Main interface for your OSGi platform.

Author:
C. Saint-Marcel

Field Summary
static String DEVICE_PROPERTY_IDENTIFIER
           
static String DEVICE_STATE_FUNCTIONAL
          Device state.
static String DEVICE_STATE_NOTFUNCTIONAL
          Device state for failures.
 
Method Summary
 String getIdentifier()
           
 Measurement getLastMeasure()
           
 String getState()
           
 String getType()
           
 

Field Detail

DEVICE_STATE_FUNCTIONAL

static final String DEVICE_STATE_FUNCTIONAL
Device state.

See Also:
Constant Field Values

DEVICE_STATE_NOTFUNCTIONAL

static final String DEVICE_STATE_NOTFUNCTIONAL
Device state for failures.

See Also:
Constant Field Values

DEVICE_PROPERTY_IDENTIFIER

static final String DEVICE_PROPERTY_IDENTIFIER
See Also:
Constant Field Values
Method Detail

getIdentifier

String getIdentifier()
Returns:
a unique identifier

getType

String getType()
Returns:
the device type, freely implemented

getState

String getState()
Returns:
the current type of the device

getLastMeasure

Measurement getLastMeasure()
Returns:
the last measurement


Copyright © 2011-2012 Velossity. All Rights Reserved.