|
WIDAR Classes | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.nrc.widar.mccc.crm.CrmStbHSComparable
public class CrmStbHSComparable
WIDAR/EVLA - CRM: CrmStbHSComparable Class
The CRM Station Board Hardware Self Test Comparable class.
This class will handle one comparable for the Station Board Hardware Self Test. It will supply all storage and analysis functionality for a comparable used within the STBHS Diagnostic.
Copyright: National Research Council of Canada and Associated Universities Inc., 2010, 2011, 2012
![]() |
![]() |
![]() |
![]() |
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME
|
Constructor Summary | |
---|---|
CrmStbHSComparable(java.lang.String loc,
java.lang.String titleValue,
ca.nrc.widar.jaxb.crm.StbHstDpModeType modeValue,
int thresholdValue)
Convenience constructor for the CrmStbHSComparable class, allows the caller to omit the dimensions d1 and d2, which are taken to be default as d1=Number of Data Paths (2) and d2=Number of Filter Chips (18) |
|
CrmStbHSComparable(java.lang.String loc,
java.lang.String titleValue,
ca.nrc.widar.jaxb.crm.StbHstDpModeType modeValue,
int stageValue,
int subbandValue,
int dim1,
int dim2,
int thresholdExponentValue)
Constructor for the CrmStbHSComparable class which returns a class that handles the comparisons and statistics gathering for one 'comparable' within the CrmStbHSDiagnostic |
Method Summary | |
---|---|
void |
addRecord(int i,
int j,
java.lang.Integer newVal)
Adds a new record of type Integer to this comparable class. |
void |
addRecord(int i,
int j,
java.lang.Long newVal)
Adds a new record of type Long to this comparable class, incrementing the appropriate counters as required |
void |
analyzeAcross()
Method that enacts a comparison when the diagnostic is operating in 'ACROSS' mode. |
void |
analyzeWithin(int dp)
Method called from the Diagnostic that supplies a code for datapath 0=DP0, 1=DP2, 2=both data paths |
void |
analyzeWithinDp(int dp)
Method that calls the comparison within a data path being processed |
void |
analyzeWithinFilters(int dp,
int f1,
int f2)
Enacts the comparison when the diagnostic is in WITHIN compare mode for this comparable. |
int |
getCount(int i,
int j)
|
int |
getError(int i,
int j)
|
java.util.ArrayList<ca.nrc.widar.jaxb.crm.FilterComp> |
getFilterCompList()
|
java.util.ArrayList<ca.nrc.widar.jaxb.crm.FilterComp> |
getFilterCompXml(int dp,
int f)
Returns an ArrayList of FilterComp XML elements that correspond to the supplied data path and filter chip id, from the list that is stored within this comparable which was accumulated during the analysis |
ca.nrc.widar.jaxb.crm.FilterComp |
getFilterCompXml(ca.nrc.widar.jaxb.crm.ObjectFactory crmOF,
int dp,
int f)
Generates and returns a FilterComp XML element based on the input parameters. |
java.util.ArrayList<ca.nrc.widar.jaxb.crm.FilterSummary> |
getFilterSummaryXml(ca.nrc.widar.jaxb.crm.ObjectFactory crmOF,
int dp)
Generates and returns an ArrayList of FilterSummary XML elements for this comparable. |
ca.nrc.widar.jaxb.crm.StbHstDpModeType |
getMode()
|
int |
getStage()
|
int |
getSubband()
|
java.lang.String |
getTitle()
|
int |
getTotalCount()
|
int |
getTotalError()
|
int |
getTotalZeroCount()
|
void |
init()
Initializes all major counters and lists |
boolean |
isSetStage()
|
boolean |
isSetSubband()
|
void |
reset()
Calls methods to zero out all values and counters |
void |
resetParams(int stageVal,
int subbandVal,
ca.nrc.widar.jaxb.crm.ObjectFactory crmOF)
The reset signal from the diagnostic sets new values for stage and subband along with resetting all storage arrays for a new round of data collection in a new configuration |
void |
setMode(ca.nrc.widar.jaxb.crm.StbHstDpModeType value)
|
void |
setStage(int value)
Sets the new stage value |
void |
setSubband(int value)
Sets the new subband value |
void |
setThresholdExponent(int thresholdValue)
|
void |
setTitle(java.lang.String value)
|
void |
storeFilterCompXml(ca.nrc.widar.jaxb.crm.ObjectFactory crmOF)
This method is called from the diagnostic when data collection in a given configuration is complete. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASSNAME
Constructor Detail |
---|
public CrmStbHSComparable(java.lang.String loc, java.lang.String titleValue, ca.nrc.widar.jaxb.crm.StbHstDpModeType modeValue, int thresholdValue)
titleValue
- The String title of this comparablemodeValue
- THe StbHstDpModeType for the diagnosticthresholdValue
- The exponent used to determine the threshold for
comparison for this valuepublic CrmStbHSComparable(java.lang.String loc, java.lang.String titleValue, ca.nrc.widar.jaxb.crm.StbHstDpModeType modeValue, int stageValue, int subbandValue, int dim1, int dim2, int thresholdExponentValue)
titleValue
- The String title of this comparablemodeValue
- THe StbHstDpModeType for the diagnosticstageValue
- THe Stage ID (1-4)subbandValue
- The subband ID (0-7)dim1
- An Integer dimension for the dataPath (usually 2)dim2
- An Integer dimension for the filter ID (Usually 18)thresholdValue
- The exponent used to determine the threshold for
comparison for this valueMethod Detail |
---|
public void init()
public void reset()
public void addRecord(int i, int j, java.lang.Integer newVal)
i
- The integer index corresponding to dimension 1j
- The integer index corresponding to dimension 2newVal
- The new Integer valuepublic void addRecord(int i, int j, java.lang.Long newVal)
i
- The integer index corresponding to dimension 1j
- The integer index corresponding to dimension 2newVal
- The new Long valuepublic void analyzeWithinFilters(int dp, int f1, int f2)
dp
- The data path to compare (0-d1)f1
- The first filter in the comparison (0-d2)f2
- The second filter in the comparison (0-d2)public void analyzeWithinDp(int dp)
dp
- The data path id (0/1)public void analyzeWithin(int dp)
dp
- The datapath 'code' (0=DP0,1=DP1,2=both)public void analyzeAcross()
public void storeFilterCompXml(ca.nrc.widar.jaxb.crm.ObjectFactory crmOF) throws java.lang.Exception
java.lang.Exception
stageVal
- THe current integer stage index ( 1-4 )subbandVal
- The current integer subband index ( 0-7 )crmOF
- A CRM Object Factorypublic void resetParams(int stageVal, int subbandVal, ca.nrc.widar.jaxb.crm.ObjectFactory crmOF) throws java.lang.Exception
java.lang.Exception
stageVal
- The new stage index (1-4)subbandVal
- The new subband index (0-7)crmOF
- A CRM ObjectFactorypublic int getTotalError()
public int getTotalCount()
public int getTotalZeroCount()
public void setStage(int value)
value
- The new stage Value (1-4)public int getStage()
public boolean isSetStage()
public void setSubband(int value)
value
- The new subband value (0-7)public int getSubband()
public boolean isSetSubband()
public int getError(int i, int j)
i
- The data path index (0/1)j
- The filter Id indes (0-17)
public int getCount(int i, int j)
i
- The data path index (0/1)j
- The filter Id indes (0-17)
public java.lang.String getTitle()
public void setTitle(java.lang.String value)
value
- The new String title of this comparablepublic ca.nrc.widar.jaxb.crm.StbHstDpModeType getMode()
public void setMode(ca.nrc.widar.jaxb.crm.StbHstDpModeType value)
value
- The new StbHstDpModeType for this comparablepublic void setThresholdExponent(int thresholdValue)
thresholdValue
- The new value for threshold exponentpublic java.util.ArrayList<ca.nrc.widar.jaxb.crm.FilterSummary> getFilterSummaryXml(ca.nrc.widar.jaxb.crm.ObjectFactory crmOF, int dp)
crmOF
- A CRM ObjectFactorydp
- The data path ID (0/1)
public java.util.ArrayList<ca.nrc.widar.jaxb.crm.FilterComp> getFilterCompList()
public java.util.ArrayList<ca.nrc.widar.jaxb.crm.FilterComp> getFilterCompXml(int dp, int f)
dp
- The data path id (0/1)f
- The filter chip id (0-17)
public ca.nrc.widar.jaxb.crm.FilterComp getFilterCompXml(ca.nrc.widar.jaxb.crm.ObjectFactory crmOF, int dp, int f)
crmOF
- A CRM Object Factorydp
- The data path index (0/1)f
- The filter chip ID (0-17)
|
NRAO/DRAO | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |