|
WIDAR Classes | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
ca.nrc.widar.mccc.crm.CrmDiagnostic
ca.nrc.widar.mccc.crm.CrmStbHSDiagnostic
public class CrmStbHSDiagnostic
WIDAR/EVLA - CRM: CrmStbHSDiagnostic Class
The CRM Station Board Hardware Self Test class.
A class which facilitates the running of diagnostic tests directly on a Station Board within the EVLA Widar correlator
This test will serve to reconfire a Station Board component, collect a pre-determined amount of output data onto local disk or memory, and then analyze the data according to pre-determined methods and practises in order to determine whether the station board and it sub-components are behaving properly and as predicted.
Note that the HS test does not require that the correlator be completely committed to performing this test.
Copyright: National Research Council of Canada and Associated Universities Inc., 2010, 2011, 2012
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static java.lang.Integer |
BW_INPUT
|
static java.lang.Integer[] |
BW_OUTPUT
|
static java.lang.String |
CLASSNAME
|
static java.lang.Integer |
CONFIG_PAUSE
|
static int |
DEFAULT_STAGE1_SUBBAND
|
static int |
INSTATE
|
static int |
N_DP
|
static int |
N_F
|
static int |
N_SB
|
static int |
N_STAGES
|
static int |
N_STREAMS
|
static int |
POWER
|
static int |
QSTATE
|
static java.lang.String[] |
STREAM
|
static java.lang.String[] |
STREAM_TITLE
|
static java.lang.Integer[] |
SW_PWR_INTEG
|
static java.lang.String[] |
TAG
|
static java.lang.String |
TEST_DESCRIPTION
|
static java.lang.String |
TEST_ID
|
static int |
TYPE
|
Fields inherited from class ca.nrc.widar.mccc.crm.CrmDiagnostic |
---|
analyze, cleanup, client, complete, crmM, crmOF, crmU, diagXml, id, safeMode, test |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
CrmStbHSDiagnostic(ca.nrc.widar.jaxb.crm.Diagnostic diagnostic)
Constructor for this diagnostic class. |
Method Summary | |
---|---|
void |
abort()
A method overriding the CrmDiagnostic abort method. |
void |
actionPerformed(java.awt.event.ActionEvent event)
Receives an ActionEvent, determines the source and performs instructions accordingly. |
void |
cleanup()
The overriding method for cleanup upon completion or abortion of the diagnostic |
void |
execute()
Executes the Station Board hardware Self-Test |
static java.lang.String[] |
getDataSource(ca.nrc.widar.jaxb.crm.StbHstDpModeType mode,
ca.nrc.widar.jaxb.crm.StbHstDataType type)
Returns a 2-slement String array (one for each data path) which contains the string value of input data source for each data path (the array is indexed by the 0-based data path id). |
protected ca.nrc.widar.jaxb.crm.Result |
getDiagResultXml()
Generate and returns a Result XML element describing the entire result set from this diagnostic |
static java.lang.Integer |
getFilterConfigCf(int stage,
int subband,
int stage1Subband)
Determines and returns an Integer value for Center Frequency based upon the configuration of the current diagnostic. |
static ca.nrc.widar.jaxb.crm.Input |
getInputConfig(ca.nrc.widar.jaxb.crm.ObjectFactory OF,
ca.nrc.widar.jaxb.crm.StbHstDpModeType mode)
Generates and returns an Input XML element which is used to fine tune the configuration of the Input chip used in the required configuration. |
static java.lang.String |
getInputGenSeed(int dp,
ca.nrc.widar.jaxb.crm.StbHstDpModeType mode)
Determines and returns the input generation seed for the wideband test signal generator based on the mode and the data path. |
static ca.nrc.widar.jaxb.crm.StationBoard |
getStbDefaultVci(ca.nrc.widar.jaxb.crm.ObjectFactory OF,
java.lang.Integer stationId,
java.lang.Integer[] bbid)
Generates and returns a StationBoard XML element which contains the VCI XML element necessary to configure the Station Board to a 'Default' configuration. |
static ca.nrc.widar.jaxb.crm.StationBoard |
getStbInput(ca.nrc.widar.jaxb.crm.ObjectFactory OF,
ca.nrc.widar.jaxb.crm.StbHstDpModeType mode)
Generates and returns a StationBoard XML element which contains an Input element only, used to configure the Input Chip on a Station Board CMIB |
static ca.nrc.widar.jaxb.crm.StationBoard |
getStbVci(ca.nrc.widar.jaxb.crm.ObjectFactory OF,
java.lang.String sn,
ca.nrc.widar.jaxb.crm.StbHstDpModeType mode,
ca.nrc.widar.jaxb.crm.StbHstDataType source,
java.lang.Integer stage,
java.lang.Integer subband)
Generates and returns a StationBoard XML element which contains the properly constructed VCI XML element used to configure the station board to the required state for diagnostic purposes. |
static ca.nrc.widar.jaxb.crm.StationBoard |
getStbVci(ca.nrc.widar.jaxb.crm.ObjectFactory OF,
java.lang.String sn,
ca.nrc.widar.jaxb.crm.StbHstDpModeType mode,
ca.nrc.widar.jaxb.crm.StbHstDataType source,
java.lang.Integer stage,
java.lang.Integer subband,
java.lang.Integer stage1Subband)
Generates and returns a StationBoard XML element which contains the properly constructed VCI XML element used to configure the station board to the required state for diagnostic purposes. |
static ca.nrc.widar.jaxb.crm.VciConfiguration.DataPath |
getVciDataPath(ca.nrc.widar.jaxb.crm.ObjectFactory OF,
java.lang.Integer dp,
java.lang.String[] source,
java.lang.Integer stage,
java.lang.Integer subband,
java.lang.Integer stage1Subband)
Generates and returns a VCI DataPath XML element used to configure a data path to the requested configuration. |
static ca.nrc.widar.jaxb.crm.VciConfiguration.DataPath.FilterConfig |
getVciDataPathFilterConfig(ca.nrc.widar.jaxb.crm.ObjectFactory OF,
java.lang.Integer dp,
java.lang.Integer f,
java.lang.Integer stage,
java.lang.Integer subband,
java.lang.Integer stage1Subband)
Generates and returns a FilterConfig child for the VCI/DataPath XML element which will serve to configure a filter chip to the desired configuration. |
static ca.nrc.widar.jaxb.crm.VciConfiguration.DataPath.InputConfig |
getVciDataPathInputConfig(ca.nrc.widar.jaxb.crm.ObjectFactory OF,
java.lang.String source)
Generates and returns an InputConfig child for the VCI/DataPath element. |
static void |
main(java.lang.String[] args)
Main method for testing purposes |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
---|
run |
Field Detail |
---|
public static final java.lang.String CLASSNAME
public static final java.lang.String TEST_ID
public static final java.lang.String TEST_DESCRIPTION
public static final java.lang.String[] STREAM
public static final java.lang.String[] TAG
public static final java.lang.String[] STREAM_TITLE
public static final int TYPE
public static final int N_STREAMS
public static final int INSTATE
public static final int QSTATE
public static final int POWER
public static final int N_SB
public static final int N_DP
public static final int N_F
public static final int DEFAULT_STAGE1_SUBBAND
public static final int N_STAGES
public static final java.lang.Integer CONFIG_PAUSE
public static final java.lang.Integer BW_INPUT
public static final java.lang.Integer[] BW_OUTPUT
public static final java.lang.Integer[] SW_PWR_INTEG
Constructor Detail |
---|
public CrmStbHSDiagnostic(ca.nrc.widar.jaxb.crm.Diagnostic diagnostic)
diagnostic
- An XML element (defined within crm.xsd) describing the particulars
of this diagnosticMethod Detail |
---|
public void execute()
execute
in class CrmDiagnostic
public void abort() throws java.lang.InterruptedException
abort
in class CrmDiagnostic
java.lang.InterruptedException
public void cleanup()
cleanup
in class CrmDiagnostic
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class CrmDiagnostic
event
- The incoming action event.protected ca.nrc.widar.jaxb.crm.Result getDiagResultXml()
getDiagResultXml
in class CrmDiagnostic
public static java.lang.String getInputGenSeed(int dp, ca.nrc.widar.jaxb.crm.StbHstDpModeType mode)
dp
- The integer data path (0,1)mode
- The StbHstDpModeType describing the mode (ACROSS/WITHIN)
public static ca.nrc.widar.jaxb.crm.Input getInputConfig(ca.nrc.widar.jaxb.crm.ObjectFactory OF, ca.nrc.widar.jaxb.crm.StbHstDpModeType mode)
OF
- A Crm ObjectFactory (this is a static method)mode
- The StbHstDpModeType describing the mode (ACROSS/WITHIN)
public static ca.nrc.widar.jaxb.crm.StationBoard getStbInput(ca.nrc.widar.jaxb.crm.ObjectFactory OF, ca.nrc.widar.jaxb.crm.StbHstDpModeType mode)
OF
- A Crm ObjectFactory (this is a static method)mode
- The StbHstDpModeType describing the mode (ACROSS/WITHIN)public static java.lang.String[] getDataSource(ca.nrc.widar.jaxb.crm.StbHstDpModeType mode, ca.nrc.widar.jaxb.crm.StbHstDataType type)
mode
- The StbHstDpModeType describing the mode (ACROSS/WITHIN)type
- The StbHstDataType used for input type (TEST/FORM)
public static ca.nrc.widar.jaxb.crm.VciConfiguration.DataPath.InputConfig getVciDataPathInputConfig(ca.nrc.widar.jaxb.crm.ObjectFactory OF, java.lang.String source)
OF
- A Crm ObjectFactory (this is a static method)source
- The string to be used as the data source for this InputConfig XML element
public static java.lang.Integer getFilterConfigCf(int stage, int subband, int stage1Subband)
stage
- The integer stage for Filter config (1-4)subband
- The integer subband id for Filter config (0-7)stage1Subband
- The integer subband to use for stage 1 when configuring
stages 2 through 4
public static ca.nrc.widar.jaxb.crm.VciConfiguration.DataPath.FilterConfig getVciDataPathFilterConfig(ca.nrc.widar.jaxb.crm.ObjectFactory OF, java.lang.Integer dp, java.lang.Integer f, java.lang.Integer stage, java.lang.Integer subband, java.lang.Integer stage1Subband)
OF
- A Crm ObjectFactory (this is a static method)dp
- The integer data path ( 0/1 )f
- The integer filter chip id ( 0-17 )stage
- The integer filter stage id ( 1-4 )subband
- The integer subband id ( 0-7 )stage1Subband
- The integer subband ID for stage 1 when configuring stages 2-4
public static ca.nrc.widar.jaxb.crm.VciConfiguration.DataPath getVciDataPath(ca.nrc.widar.jaxb.crm.ObjectFactory OF, java.lang.Integer dp, java.lang.String[] source, java.lang.Integer stage, java.lang.Integer subband, java.lang.Integer stage1Subband)
OF
- A Crm ObjectFactory (this is a static method)dp
- The integer data path ( 0/1 )source
- A 2-element String array containing the data source identifier for each data pathstage
- The integer filter stage id ( 1-4 )subband
- The integer subband id ( 0-7 )stage1Subband
- The integer subband ID for stage 1 when configuring stages 2-4
public static ca.nrc.widar.jaxb.crm.StationBoard getStbVci(ca.nrc.widar.jaxb.crm.ObjectFactory OF, java.lang.String sn, ca.nrc.widar.jaxb.crm.StbHstDpModeType mode, ca.nrc.widar.jaxb.crm.StbHstDataType source, java.lang.Integer stage, java.lang.Integer subband)
OF
- A Crm ObjectFactory (this is a static method)sn
- The serial number identifier for the Station Boardmode
- The StbHstDpModeType describing the mode (ACROSS/WITHIN)source
- The StbHstDataType describing the input signal source (TEST/FORM)stage
- The integer filter stage id ( 1-4 )subband
- The integer subband id ( 0-7 )
public static ca.nrc.widar.jaxb.crm.StationBoard getStbVci(ca.nrc.widar.jaxb.crm.ObjectFactory OF, java.lang.String sn, ca.nrc.widar.jaxb.crm.StbHstDpModeType mode, ca.nrc.widar.jaxb.crm.StbHstDataType source, java.lang.Integer stage, java.lang.Integer subband, java.lang.Integer stage1Subband)
OF
- A Crm ObjectFactory (this is a static method)sn
- The serial number identifier for the Station Boardmode
- The StbHstDpModeType describing the mode (ACROSS/WITHIN)source
- The StbHstDataType describing the input signal source (TEST/FORM)stage
- The integer filter stage id ( 1-4 )subband
- The integer subband id ( 0-7 )stage1Subband
- The integer subband ID for stage 1 when configuring stages 2-4
public static ca.nrc.widar.jaxb.crm.StationBoard getStbDefaultVci(ca.nrc.widar.jaxb.crm.ObjectFactory OF, java.lang.Integer stationId, java.lang.Integer[] bbid)
OF
- A Crm ObjectFactory (this is a static method)stationId
- The integer station ID for this station boardbbid
- A 2-element Integer array containing the BBID for each data path
public static void main(java.lang.String[] args)
|
NRAO/DRAO | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |