All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.velossity.sample.device.Device Maven / Gradle / Ivy

There is a newer version: 1.0.14
Show newest version
package fr.velossity.sample.device;

/**
 * Device Main interface for your OSGi platform.
 * @author C. Saint-Marcel
 *
 */
public interface Device {
	
	/**
	 * Device state.
	 */
	String DEVICE_STATE_FUNCTIONAL = "Functional";

	/**
	 * Device state for failures.
	 */
	String DEVICE_STATE_NOTFUNCTIONAL = "In error";

	/**
	 * @OSGI_PROPERTY mandatory, unique
	 * A property exposed by OSGi services.
	 */
	String DEVICE_PROPERTY_IDENTIFIER = "identifier";

	/**
	 * @OSGI_PROPERTY optional
	 * A property exposed by OSGi services.
	 */
	String DEVICE_PROPERTY_TYPE = "type";

	/**
	 * @return a unique identifier
	 */
	String getIdentifier();

	/**
	 * @return the device type, freely implemented
	 */
	String getType();

	/**
	 * @return the current type of the device
	 */
	String getState();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy