public abstract class AbstractFunctionalUA extends java.lang.Object implements FunctionalUA
Modifier and Type | Field and Description |
---|---|
protected arinc661.client.api.StatefullAPI |
api
The ARINC 661 API.
|
protected org.da.protoframework.conf.FrameworkLogger |
logger
The Logger.
|
protected org.da.protoframework.model.core.Module |
module
The Module.
|
protected org.da.protoframework.model.core.ServiceInstance<?,?> |
provideService
The default Service Instance.
|
protected A661RuntimeAPI |
runtimeAPIHelper
The ARINC 661 runtime API helper.
|
protected java.util.Map<org.da.protoframework.model.namespace.NamespaceKey,org.da.protoframework.model.core.ServiceInstance<?,?>> |
services
The Services Instances.
|
protected java.util.Map<java.lang.String,org.da.protoframework.model.core.ServiceInstance<?,?>> |
servicesByName
The Services Instances.
|
protected org.da.protoframework.model.core.ServiceInstance<?,?> |
subscribeService
The default Service Instance.
|
Constructor and Description |
---|
AbstractFunctionalUA() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatValueAsString(java.lang.String name,
java.lang.String format)
Return the value of a Data as a String.
|
java.lang.String |
formatValueAsString(java.lang.String serviceName,
java.lang.String name,
java.lang.String format)
Return the value of a Data as a String.
|
java.lang.String |
formatValueAsString(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name,
java.lang.String format)
Return the value of a Data as a String.
|
A661RuntimeAPI |
getA661RuntimeAPI()
Return the A661 runtime API helper.
|
java.util.List<java.lang.Object> |
getArrayValue(java.lang.String name)
Return the data value as an array.
|
java.util.List<java.lang.Object> |
getArrayValue(java.lang.String serviceName,
java.lang.String name)
Return the data value as an array.
|
java.util.List<java.lang.Object> |
getArrayValue(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name)
Return the data value as an array.
|
boolean |
getBooleanValue(java.lang.String name)
Return the value of a Data as a boolean.
|
boolean |
getBooleanValue(java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as a boolean.
|
boolean |
getBooleanValue(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as a boolean.
|
java.lang.ClassLoader |
getClassLoader()
Return the ClassLoader used for loading the UA
|
org.da.protoframework.model.core.Data<?> |
getData(java.lang.String name)
Return the Data of a specified name for the default subscribed Service.
|
org.da.protoframework.model.core.Data<?> |
getData(java.lang.String serviceName,
java.lang.String name)
Return the Data of a specified name for a specified Service.
|
org.da.protoframework.model.core.Data<?> |
getData(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name)
Return the Data of a specified name for a specified Service.
|
float |
getFloatValue(java.lang.String name)
Return the value of a Data as a float.
|
float |
getFloatValue(java.lang.String name,
short unit)
Return the value of a Data as a float.
|
float |
getFloatValue(java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as a float.
|
float |
getFloatValue(java.lang.String serviceName,
java.lang.String name,
short unit)
Return the value of a Data as a float.
|
float |
getFloatValue(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as a float.
|
float |
getFloatValue(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name,
short unit)
Return the value of a Data as a float.
|
int |
getIntValue(java.lang.String name)
Return the value of a Data as an int.
|
int |
getIntValue(java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as an int.
|
int |
getIntValue(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as an int.
|
short |
getShortValue(java.lang.String name)
Return the value of a Data as a short.
|
short |
getShortValue(java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as a short.
|
short |
getShortValue(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as a short.
|
java.lang.String |
getStateValueAsString(java.lang.String name)
Return the value of a enumeration state as a String.
|
java.lang.String |
getStateValueAsString(java.lang.String serviceName,
java.lang.String name)
Return the value of a enumeration state as a String.
|
java.lang.String |
getStateValueAsString(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name)
Return the value of a enumeration state as a String.
|
java.lang.String |
getStringValue(java.lang.String name)
Return the value of a Data as a String.
|
java.lang.String |
getStringValue(java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as a String.
|
java.lang.String |
getStringValue(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as a String.
|
java.util.List<java.lang.Object> |
getStructureValue(java.lang.String name)
Return the value of a Data as a structure.
|
java.util.List<java.lang.Object> |
getStructureValue(java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as a structure.
|
java.util.List<java.lang.Object> |
getStructureValue(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name)
Return the value of a Data as a structure.
|
java.lang.Object |
getValue(java.lang.String name)
Return the value of a Data.
|
java.lang.Object |
getValue(java.lang.String serviceName,
java.lang.String name)
Return the value of a Data.
|
java.lang.Object |
getValue(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name)
Return the value of a Data.
|
boolean |
hasChanged(java.lang.String name)
Return true if a Data has changed.
|
boolean |
hasChanged(java.lang.String serviceName,
java.lang.String name)
Return true if a Data has changed.
|
boolean |
hasChanged(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name)
Return true if a Data has changed.
|
void |
hideServerFrame()
Hide the Server frame.
|
boolean |
isStateValue(java.lang.String name,
java.lang.String stateAsString)
Return true if the value of a enumeration state as a String is equal to a specified String.
|
boolean |
isStateValue(java.lang.String serviceName,
java.lang.String name,
java.lang.String stateAsString)
Return true if the value of a enumeration state as a String is equal to a specified String.
|
boolean |
isStateValue(java.lang.String uri,
java.lang.String serviceName,
java.lang.String name,
java.lang.String stateAsString)
Return true if the value of a enumeration state as a String is equal to a specified String.
|
void |
setAPI(arinc661.client.api.StatefullAPI api)
Set the API.
|
void |
setClassLoader(java.lang.ClassLoader loader)
Set the ClassLoader used for loading the UA.
|
void |
setDatasToService(java.util.Map<java.lang.String,org.da.protoframework.model.core.ServiceInstance<?,?>> data2Service) |
void |
setDefaultProvideService(org.da.protoframework.model.core.ServiceInstance<?,?> service)
Set the Service Instance.
|
void |
setDefaultSubscribeService(org.da.protoframework.model.core.ServiceInstance<?,?> service)
Set the Service Instance.
|
void |
setModule(org.da.protoframework.model.core.Module module)
Set the Module.
|
void |
setServerAlwaysOnTop()
Set the Server frame as always on top.
|
void |
setServerToFront()
Set the Server frame to front.
|
void |
setServices(java.util.Map<org.da.protoframework.model.namespace.NamespaceKey,org.da.protoframework.model.core.ServiceInstance<?,?>> services)
Set the Services Instances.
|
void |
setUAApplication(UAApplication uaAppli)
Set the UAApplication module.
|
void |
showServerFrame()
Show the Server frame.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connected, disconnected, init, preConfigure, push, subscribe
protected org.da.protoframework.model.core.ServiceInstance<?,?> subscribeService
protected org.da.protoframework.model.core.ServiceInstance<?,?> provideService
protected java.util.Map<org.da.protoframework.model.namespace.NamespaceKey,org.da.protoframework.model.core.ServiceInstance<?,?>> services
protected java.util.Map<java.lang.String,org.da.protoframework.model.core.ServiceInstance<?,?>> servicesByName
protected arinc661.client.api.StatefullAPI api
protected A661RuntimeAPI runtimeAPIHelper
protected org.da.protoframework.conf.FrameworkLogger logger
protected org.da.protoframework.model.core.Module module
public void setUAApplication(UAApplication uaAppli)
setUAApplication
in interface FunctionalUA
uaAppli
- the UAApplication modulepublic A661RuntimeAPI getA661RuntimeAPI()
getA661RuntimeAPI
in interface FunctionalUA
public void setServerAlwaysOnTop()
public void setServerToFront()
public void hideServerFrame()
public void showServerFrame()
public void setDatasToService(java.util.Map<java.lang.String,org.da.protoframework.model.core.ServiceInstance<?,?>> data2Service)
setDatasToService
in interface FunctionalUA
public void setClassLoader(java.lang.ClassLoader loader)
setClassLoader
in interface FunctionalUA
loader
- the ClassLoaderpublic java.lang.ClassLoader getClassLoader()
public void setModule(org.da.protoframework.model.core.Module module)
setModule
in interface FunctionalUA
module
- the Modulepublic void setServices(java.util.Map<org.da.protoframework.model.namespace.NamespaceKey,org.da.protoframework.model.core.ServiceInstance<?,?>> services)
setServices
in interface FunctionalUA
services
- the Services Instancespublic void setDefaultSubscribeService(org.da.protoframework.model.core.ServiceInstance<?,?> service)
setDefaultSubscribeService
in interface FunctionalUA
service
- the Service Instancepublic void setDefaultProvideService(org.da.protoframework.model.core.ServiceInstance<?,?> service)
setDefaultProvideService
in interface FunctionalUA
service
- the Service Instancepublic boolean hasChanged(java.lang.String uri, java.lang.String serviceName, java.lang.String name)
uri
- the service namespace URIserviceName
- the Service namename
- the data namepublic boolean hasChanged(java.lang.String serviceName, java.lang.String name)
serviceName
- the Service namename
- the data namepublic boolean hasChanged(java.lang.String name)
name
- the data namepublic java.lang.String getStateValueAsString(java.lang.String uri, java.lang.String serviceName, java.lang.String name)
uri
- the namespace URIserviceName
- the Service namename
- the enumeration data namepublic java.lang.String getStateValueAsString(java.lang.String serviceName, java.lang.String name)
serviceName
- the Service namename
- the enumeration data namepublic java.lang.String getStateValueAsString(java.lang.String name)
name
- the enumeration data namepublic boolean isStateValue(java.lang.String uri, java.lang.String serviceName, java.lang.String name, java.lang.String stateAsString)
uri
- the namespace URIserviceName
- the Service namename
- the enumeration data namestateAsString
- the requested state value as a Stringpublic boolean isStateValue(java.lang.String serviceName, java.lang.String name, java.lang.String stateAsString)
serviceName
- the Service namename
- the enumeration data namestateAsString
- the requested state value as a Stringpublic boolean isStateValue(java.lang.String name, java.lang.String stateAsString)
name
- the enumeration data namestateAsString
- the requested state value as a Stringpublic org.da.protoframework.model.core.Data<?> getData(java.lang.String name)
name
- the Data namepublic org.da.protoframework.model.core.Data<?> getData(java.lang.String uri, java.lang.String serviceName, java.lang.String name)
uri
- the namesdpace URIserviceName
- the Service namename
- the Data namepublic org.da.protoframework.model.core.Data<?> getData(java.lang.String serviceName, java.lang.String name)
serviceName
- the Service namename
- the Data namepublic int getIntValue(java.lang.String uri, java.lang.String serviceName, java.lang.String name)
uri
- the namespace URIserviceName
- the Service namename
- the data namepublic int getIntValue(java.lang.String serviceName, java.lang.String name)
serviceName
- the Service namename
- the data namepublic short getShortValue(java.lang.String name)
name
- the data namepublic short getShortValue(java.lang.String uri, java.lang.String serviceName, java.lang.String name)
uri
- the namespace URIserviceName
- the Service namename
- the data namepublic short getShortValue(java.lang.String serviceName, java.lang.String name)
serviceName
- the Service namename
- the data namepublic int getIntValue(java.lang.String name)
name
- the data namepublic float getFloatValue(java.lang.String uri, java.lang.String serviceName, java.lang.String name)
uri
- the namespace URIserviceName
- the Service namename
- the data namepublic float getFloatValue(java.lang.String serviceName, java.lang.String name)
serviceName
- the Service namename
- the data namepublic float getFloatValue(java.lang.String uri, java.lang.String serviceName, java.lang.String name, short unit)
uri
- the namespace URIserviceName
- the Service namename
- the data nameunit
- the unitpublic float getFloatValue(java.lang.String serviceName, java.lang.String name, short unit)
serviceName
- the Service namename
- the data nameunit
- the unitpublic float getFloatValue(java.lang.String name)
name
- the data namepublic float getFloatValue(java.lang.String name, short unit)
name
- the data nameunit
- the unitpublic boolean getBooleanValue(java.lang.String uri, java.lang.String serviceName, java.lang.String name)
uri
- the namespace URIserviceName
- the Service namename
- the data namepublic boolean getBooleanValue(java.lang.String serviceName, java.lang.String name)
serviceName
- the Service namename
- the data namepublic boolean getBooleanValue(java.lang.String name)
name
- the data namepublic java.lang.String getStringValue(java.lang.String uri, java.lang.String serviceName, java.lang.String name)
uri
- the namespace URIserviceName
- the Service namename
- the data namepublic java.lang.String getStringValue(java.lang.String serviceName, java.lang.String name)
serviceName
- the Service namename
- the data namepublic java.lang.String formatValueAsString(java.lang.String uri, java.lang.String serviceName, java.lang.String name, java.lang.String format)
uri
- the service uriserviceName
- the Service namename
- the data nameformat
- the format patternpublic java.lang.String formatValueAsString(java.lang.String serviceName, java.lang.String name, java.lang.String format)
serviceName
- the Service namename
- the data nameformat
- the format patternpublic java.lang.String formatValueAsString(java.lang.String name, java.lang.String format)
name
- the data nameformat
- the format patternpublic java.lang.String getStringValue(java.lang.String name)
name
- the data namepublic java.lang.Object getValue(java.lang.String name)
name
- the data namepublic java.lang.Object getValue(java.lang.String uri, java.lang.String serviceName, java.lang.String name)
uri
- the namespace URIserviceName
- the service namename
- the data namepublic java.lang.Object getValue(java.lang.String serviceName, java.lang.String name)
serviceName
- the service namename
- the data namepublic java.util.List<java.lang.Object> getArrayValue(java.lang.String name)
name
- the data namepublic java.util.List<java.lang.Object> getArrayValue(java.lang.String uri, java.lang.String serviceName, java.lang.String name)
uri
- the namespace URIserviceName
- the Service namename
- the data namepublic java.util.List<java.lang.Object> getArrayValue(java.lang.String serviceName, java.lang.String name)
serviceName
- the Service namename
- the data namepublic java.util.List<java.lang.Object> getStructureValue(java.lang.String name)
name
- the data namepublic java.util.List<java.lang.Object> getStructureValue(java.lang.String uri, java.lang.String serviceName, java.lang.String name)
uri
- the namespace URIserviceName
- the service namename
- the data namepublic java.util.List<java.lang.Object> getStructureValue(java.lang.String serviceName, java.lang.String name)
serviceName
- the service namename
- the data namepublic void setAPI(arinc661.client.api.StatefullAPI api)
setAPI
in interface FunctionalUA
api
- the APICopyright ©2017-2024 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence