This package contains the factories allowing to create the various entities used in JAPC such as the parameters and their values.

Two sorts of factory are present in the package. The non customizable ones (ParameterValueFactory and TransactionFactory) have static methods that one can called directly. For instance, to create a parameter value using ParameterValueFactory one can call :

SimpleParameterValue value = ParameterValueFactory.newParameterValue(0.6);
   

In contrast, ParameterFactory is an abstract factory that has to be subclassed to provide a concrete implementation. The concrete implementation creates JAPC parameters tailored for a given transport and a given domain. The end user should just call the static method ParameterFactory.newInstance() to obtaint the concrete implementation that has been configured. Using the instance of parameter factory, it is possible to create parameters by calling

Parameter parameter = parameterFactory.newInstance(deviceName, propertyName)

@author JAPC Team @since JAPC 0.1