public class ScadaFieldMap extends java.util.HashMap<java.lang.String,ScadaFieldDescriptor>
This class parses the meta-data of the
annotation
used to identify fields in data structures as Supervisory Control And Data
Acquisition (SCADA) fields. The meta-data is taken from each field annotation and
is used to populate a AScada.Field
ScadaFieldDescriptor
object. The sum of all
annotation data for each field is returned as a map of the data structure field
name to the actual field descriptor.
ScadaFieldDescriptor
usage is (hopefully) going
to be eradicated. It is too clumsy and the Java Annotation mechanism seems
more appropriate.
Ported from XAL on Jul 15, 2014.
· Jonathan M. Freed
Constructor and Description |
---|
ScadaFieldMap(java.lang.Class<?> clsScada)
Create a new SCADA field map object for the given SCADA data structure.
|
ScadaFieldMap(java.util.List<ScadaFieldDescriptor> lstFlds)
Create a new SCADA field map object which contains the fields
in the given list.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public ScadaFieldMap(java.lang.Class<?> clsScada)
clsScada
- class representing a SCADA data structurepublic ScadaFieldMap(java.util.List<ScadaFieldDescriptor> lstFlds)
Create a new SCADA field map object which contains the fields in the given list.
ScadaFieldList
is derived from the type
List
. Thus, objects of that type
maybe be used as arguments.
lstFlds
- list containing field descriptors to be mapped (keyed by field name)ScadaFieldList