fr.velossity.sample.device.impl
Class MockDeviceImpl

java.lang.Object
  extended by fr.velossity.sample.device.impl.MockDeviceImpl
All Implemented Interfaces:
Device

public class MockDeviceImpl
extends Object
implements Device

Author:
C. Saint-Marcel

Field Summary
 
Fields inherited from interface fr.velossity.sample.device.Device
DEVICE_STATE_FUNCTIONAL, DEVICE_STATE_NOTFUNCTIONAL
 
Constructor Summary
MockDeviceImpl(String identifier)
           
 
Method Summary
 String getIdentifier()
           
 String getState()
          Mock device is always functional
 String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockDeviceImpl

public MockDeviceImpl(String identifier)
Method Detail

getIdentifier

public String getIdentifier()
Specified by:
getIdentifier in interface Device
Returns:
a unique identifier

getType

public String getType()
Specified by:
getType in interface Device
Returns:
the device type, freely implemented

getState

public String getState()
Mock device is always functional

Specified by:
getState in interface Device
Returns:
the current type of the device


Copyright © 2011. All Rights Reserved.