This package is the main entry point for a user as it provides all interfaces needed to work with parameter. It defines ParameterValue that is used to set the value of a parameter and AcquiredParameterValue that is used to get the value of a parameter. AcquiredParameterValue provides an header (ValueHeader) and a status (ValueStatus) to qualify the value received.

Two versions of the parameter interface exist : ImmutableParameter for parameter that cannot be set and Parameter. The common usage pattern of this package will be first to get a ParameterFactory instance by doing ParameterFactory parameterFactory = ParameterFactory.newInstance();. Using that instance it is possible to create parameters by doing Parameter parameter = parameterFactory.newParameter(deviceName, propertyName)

Here is an code sample that creates a parameter and does a simple get on it :

ParameterFactory factory = ParameterFactory.newInstance();
parameter = factory.newParameter(deviceName, propertyName);
AcquiredParameterValue result = parameter.getValue(ParameterValueFactory.newCycleSelector(cycleSelector));
System.out.println("  value = "+result);
In this example, the strings deviceName, propertyName and cycleSelector are dependent of which parameter of which device you want to access.

@author JAPC Team @since JAPC 0.1