Package cbsw.lhcb.pdmdb
Class ClaroMap
- java.lang.Object
-
- cbsw.lhcb.pdmdb.ClaroMap
-
class ClaroMap extends java.lang.Object
This class encapsulates the FastIC8 register set.
Register descriptors are unmarshalled into statically accessible members of this class.
Note that the class members are static but unfortunately not immutable because of the need to use JAXB setters.
-
-
Field Summary
Fields Modifier and Type Field Description static int
csrSize
The register map size in bytes.static java.util.ArrayList<RegisterDescriptor>
descriptors
The register descriptors.static java.util.HashMap<java.lang.String,RegisterDescriptor>
map
The map of register names to descriptors.
-
Constructor Summary
Constructors Constructor Description ClaroMap()
No-argument constructor called by unmarshaller
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCsrSize()
java.util.ArrayList<RegisterDescriptor>
getDescriptors()
Gets the register descriptor list.void
setCsrSize(int csrSize)
Sets the register map size.void
setDescriptors(java.util.ArrayList<RegisterDescriptor> descriptors)
Sets the register descriptor list.
-
-
-
Field Detail
-
csrSize
public static int csrSize
The register map size in bytes.
-
descriptors
public static java.util.ArrayList<RegisterDescriptor> descriptors
The register descriptors.
-
map
public static java.util.HashMap<java.lang.String,RegisterDescriptor> map
The map of register names to descriptors.
-
-
Method Detail
-
setCsrSize
public void setCsrSize(int csrSize)
Sets the register map size.
- Parameters:
csrSize
- The register map size in bytes.
-
getCsrSize
public int getCsrSize()
-
setDescriptors
public void setDescriptors(java.util.ArrayList<RegisterDescriptor> descriptors)
Sets the register descriptor list.
- Parameters:
descriptors
- An ArrayList of RegisterDescriptors.
-
getDescriptors
public java.util.ArrayList<RegisterDescriptor> getDescriptors()
Gets the register descriptor list.
- Returns:
- The list.
-
-