fr.velossity.sample.device.impl
Class MockDeviceImpl
java.lang.Object
fr.velossity.sample.device.impl.MockDeviceImpl
- All Implemented Interfaces:
- Device
public class MockDeviceImpl
- extends Object
- implements Device
- Author:
- C. Saint-Marcel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockDeviceImpl
public MockDeviceImpl(String identifier)
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.