fr.velossity.sample.device.impl.MockDeviceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ServiceProviderWB2 Show documentation
Show all versions of ServiceProviderWB2 Show documentation
Sample of provider implemented with the White Board Pattern
package fr.velossity.sample.device.impl;
import fr.velossity.sample.device.Device;
/**
*
* @author C. Saint-Marcel
*
*/
public class MockDeviceImpl implements Device {
String identifier;
/*
* Default constructor.
*/
public MockDeviceImpl(String identifier) {
super();
this.identifier = identifier;
}
public String getIdentifier() {
return identifier;
}
public String getType() {
return "Mock";
}
/**
* Mock device is always functional
*/
public String getState() {
return DEVICE_STATE_FUNCTIONAL;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy