public class GenericConverter extends Object
| Constructor and Description |
|---|
GenericConverter(List<String> subsystemsToConvert,
Map<String,Class> classMap,
Mapping mapping,
Map<String,String> nameChangeTelemetry,
Map<String,String> nameChangeSettingsApplied)
Create a new generic converter for converting CCS classes to SAL classes
|
| Modifier and Type | Method and Description |
|---|---|
Object |
reflectedClass(Class cls,
Map<String,Object> dataNamesAndValues,
Parameter[] parameters,
SALClassDescription salClassDescriptionList,
String categoryVersion) |
List<org.lsst.sal.camera.CameraEvent> |
settingsAppliedEventConverter(Map<String,SALClassDescription> givenSalClassMapInfo,
org.lsst.ccs.bus.messages.StatusConfigurationInfo sdata) |
List<org.lsst.sal.camera.CameraTelemetry> |
telemetryConverter(Map<String,SALClassDescription> givenSalClassMapInfo,
org.lsst.ccs.bus.messages.StatusSubsystemData data) |
public GenericConverter(List<String> subsystemsToConvert, Map<String,Class> classMap, Mapping mapping, Map<String,String> nameChangeTelemetry, Map<String,String> nameChangeSettingsApplied)
subsystemsToConvert - The list of subsystem this generic converter
should handleclassMap - A map to be used in case the class name as created by
XMLMaker/ProcessedInfo to the actual SAL generated classnameChangeTelemetry - A map to be used in the case that telemetry
variable names have changednameChangeSettingsApplied - A map to be used in the case that
settings applied variable names have changed.public List<org.lsst.sal.camera.CameraTelemetry> telemetryConverter(Map<String,SALClassDescription> givenSalClassMapInfo, org.lsst.ccs.bus.messages.StatusSubsystemData data) throws ReflectiveOperationException
ReflectiveOperationExceptionpublic List<org.lsst.sal.camera.CameraEvent> settingsAppliedEventConverter(Map<String,SALClassDescription> givenSalClassMapInfo, org.lsst.ccs.bus.messages.StatusConfigurationInfo sdata) throws ReflectiveOperationException
ReflectiveOperationExceptionpublic Object reflectedClass(Class cls, Map<String,Object> dataNamesAndValues, Parameter[] parameters, SALClassDescription salClassDescriptionList, String categoryVersion) throws ReflectiveOperationException
ReflectiveOperationExceptionCopyright © 2022 LSST. All rights reserved.