public final class sourcepic extends nxm.sys.lib.Primitive implements PicSlave, nxm.sys.inc.Keyable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
archList
List of supported archive modes
|
static java.lang.String |
monitorList
List of supported asynchronous monitor modes
|
static java.lang.String |
pktmodeList
List of supported packet modes
|
static int |
rABORT |
static int |
rARCHIVE |
static int |
rCONTINUOUS |
static java.lang.String |
replayList
List of supported replay modes
|
static int |
rFILE |
static int |
rFINISH |
static int |
rNEWDEVICE |
static int |
rONESHOT |
static int |
rRECONNECT |
static int |
rRELEASE |
static int |
rREOPEN |
static int |
rRESTART |
static int |
rRESTART_WAIT |
static int |
rSPIN |
static int |
rSTOPNOW |
static int |
rSTOPPED |
static int |
rSTOPTOP |
static java.lang.String |
syncList
List of supported master/slave modes
|
args, flagsList, id, isPiped, M, MA, MQ, MR, MT, name, option, queue, state, support, threadALAW, AMODE, ASCII, ASCII256, BMAX, BMIN, BOOL, BYTE, COMPLEX, CONVERT_TYPE_LIST, CRAY, DATA_MODE_LIST, DATA_TYPE_LIST, DMAX, DMIN, DOUBLE, EEEI, EXTENDED_DATA_TYPE_LIST, falseStates, FLOAT, FMAX, FMIN, IEEE, IMAX, IMIN, INT, JINT, LMAX, LMIN, LONG, MATRIX, modeList, MULT_DATA_MODE_LIST, NIBBLE, NMAX, NMIN, NONHOMOGENEOUS, NUMBER, numberTypes, NUMERIC_DATA_TYPE_LIST, numericTypeList, OBJECT, PACKED, QUAD, repList, RESULT_TYPE_LIST, SCALAR, STRING, TABLE, TRANSMATRIX, trueStates, typeList, UINT, ULAW, ULONG, VAX, VECTOR, XLONG, XMAX, XMIN, XMODE, XMVALUE, XMVALUE_KVLIST, XMVALUE_LIST, XMVALUE_TABLEANGULAR_VELOCITY_PRECESSING_COR, B1G, B1K, B1M, B1T, B64K, CYC2RAD, DEF_EARTH_ANGULAR_VELOCITY, DEG2METERS, DEG2RAD, E, EARTH_ANGULAR_VELOCITY, EARTH_ECCENTRICITY, EARTH_EQUATORIAL_RADIUS, EARTH_FLATTENING_FACTOR, EARTH_GRAV_CONSTANT_W_ATMOS, EARTH_GRAV_CONSTANT_W_ATMOS_ORIG, EARTH_GRAV_CONSTANT_WO_ATMOS, EARTH_GRAV_CONSTANT_WO_ATMOS_ORIG, FEET2METERS, HALFPI, IAU_EARTH_ANGULAR_VELOCITY, LN2DB, LN2LOG, LNTEN, MASS_OF_EARTH_W_ATMOS, METERS2DEG, METERS2FEET, METERS2NM, METERS2SM, NM2FEET, NM2METERS, PI, POLAR_RADIUS_IN_METERS, POLAR_RADIUS_OF_CURVATURE, RAD2CYC, RAD2DEG, SECOND_EARTH_ECCENTRICITY, SM2FEET, SM2METERS, SPEED_OF_LIGHT, TWOPI| Constructor and Description |
|---|
sourcepic() |
| Modifier and Type | Method and Description |
|---|---|
int |
close()
This will finish the commandable objects processing.
|
ICEPacket |
getAPkt() |
double |
getArchDur() |
java.lang.String |
getArchFN() |
Archiver |
getArchiver() |
nxm.sys.lib.Table |
getArchKW() |
java.lang.String |
getArchMode() |
double |
getArchOff() |
double |
getArchTop() |
double |
getBytes() |
double |
getBytesOut() |
int |
getCBLost() |
int |
getChannel() |
double |
getChannelFreq(int chn) |
int |
getChnGain(int chan) |
int |
getCycle() |
int |
getDec() |
double |
getDelta() |
MDevIce |
getDevIce() |
int |
getDmaMode()
Gets the current DMA mode slave device
|
java.lang.String |
getFormat() |
double |
getFreq() |
int |
getGain() |
int |
getHBLost() |
long |
getIndex() |
java.lang.Object |
getKey(java.lang.String key)
Get the value of an object's keyed field.
|
java.lang.String[] |
getKeys()
Get a list of the available keys.
|
float |
getMBPS() |
java.lang.String |
getMonitor() |
double |
getOffset() |
int |
getPFull() |
ICEPacket |
getPkt() |
java.lang.String |
getPort() |
double |
getProgress()
returns the
0.0 -> 1.0 progress based on input file. |
int |
getRate() |
double |
getRatio() |
java.lang.String |
getReplay()
Gets the replay mode of the slave device
|
double |
getRfFreq() |
int |
getRfGain() |
int |
getSkip() |
double |
getSyncOff() |
nxm.sys.lib.Table |
getTable(nxm.sys.lib.Table t) |
int |
getTCMode() |
nxm.sys.lib.Time |
getTime() |
DevIce.TimeCode |
getTimeCode() |
boolean |
isTuner() |
int |
open()
This will prepare the commandable object for processing.
|
int |
process()
This will process the commandable objects algorithm.
|
void |
setAGC(nxm.sys.lib.Table tbl) |
void |
setAgcLevel(double value) |
void |
setAgcWidth(double value) |
void |
setArchDur(double value) |
void |
setArchFN(java.lang.String value) |
void |
setArchMode(java.lang.String value) |
void |
setArchOff(double value) |
void |
setChannel(int value) |
void |
setDec(int value) |
void |
setEnable(int value) |
void |
setFreq(double value) |
void |
setFreqs(nxm.sys.lib.Data value) |
void |
setGain(int value) |
void |
setGPW(nxm.sys.libg.GValue value) |
java.lang.Object |
setKey(java.lang.String key,
java.lang.Object value)
Set the value of an object's keyed field.
|
void |
setMaxGain(int value) |
void |
setMinGain(int value) |
void |
setMonitor(java.lang.String value) |
void |
setRate(int value) |
void |
setRatio(double value) |
void |
setReplay(java.lang.String value)
Sets the replay mode of the slave device
|
void |
setRfFreq(double value) |
void |
setRfFreqKWO(double value) |
void |
setRfGain(int value) |
void |
setSelect(int value) |
void |
setStats(int value) |
void |
setSyncOff(double value) |
static void |
setTime(nxm.sys.lib.DataFile df,
double wsec,
double fsec) |
void |
startArchiver() |
void |
startArchiver(java.lang.String fname) |
void |
startArchiver(java.lang.String fname,
double dur) |
void |
startArchiver(java.lang.String fname,
double off,
double dur) |
void |
stopArchiver() |
addProgressFeed, checkin, checkout, finishing, getArgs, getCmdParent, getContext, getID, getInterrupt, getMenuCommands, getMessageHandler, getMidas, getMQ, getMsgID, getName, getPollTime, getState, getStatus, getVerbose, isNmPromptCmd, isStateChanged, processException, processMessage, processMessage, processMessages, processReady, restart, run, runSingle, setArg, setArgs, setCmdParent, setMessageHandler, setMsgID, setNmPromptCmd, setPollTime, setProgressFeed, setState, setState, setVerbose, stateToString, thisIsMe, toString, verify, whoIsThispublic static java.lang.String replayList
public static int rFILE
public static int rSTOPPED
public static int rONESHOT
public static int rCONTINUOUS
public static int rSTOPTOP
public static int rSTOPNOW
public static int rSPIN
public static int rARCHIVE
public static int rRESTART
public static int rABORT
public static int rFINISH
public static int rNEWDEVICE
public static int rREOPEN
public static int rRECONNECT
public static int rRELEASE
public static int rRESTART_WAIT
public static java.lang.String syncList
public static java.lang.String archList
public static java.lang.String pktmodeList
public static java.lang.String monitorList
public int open()
nxm.sys.inc.CommandableCommandable.process() and should be used to open
any files needed and to initialize any parameters.open in interface nxm.sys.inc.Commandableopen in class nxm.sys.lib.CommandCommandable.NOOP if this method does no work.Commandable.NORMAL if this method successfully completes and
the Commandable object is ready to be
processed with Commandable.process().Commandable.FINISH if this method successfully completes
and the Commandable object does not require
any processing with Commandable.process() (i.e.
skip directly to Commandable.close()).Commandable.process(),
Commandable.close(),
State Diagram for a Commandable Objectpublic int process()
nxm.sys.inc.CommandableCommandable.open()
method will always be called before this method. This should be
responsible for doing any of the data processing required by the
commandable object.Commandable.NORMAL or Commandable.NOOP.process in interface nxm.sys.inc.Commandableprocess in class nxm.sys.lib.CommandCommandable.NORMAL upon completion of a single pass of the
algorithm.Commandable.FINISH upon successful completion of the entire
algorithm.Commandable.NOOP upon completion of a single pass of the
algorithm in which no work was performed
(this usually indicates that the object is
waiting for another thread to provide data
to process).Commandable.SLEEP upon completion of a single pass of the
algorithm where a pause (see
Time.sleep(double)) is
required before Commandable.process() can be
called again.Commandable.PAUSE
or Commandable.SUSPEND indicates that the Commandable object
should be placed in the Commandable.SUSPEND
state until the Commandable.RESUME
directive is given.Time.sleep(double),
Commandable.open(),
Commandable.close(),
State Diagram for a Commandable Objectpublic int close()
nxm.sys.inc.CommandableCommandable.open() and
Commandable.process(); this includes closing any files opened by
Commandable.open() and clearing any temporary data used by
Commandable.process(). This is the stage where the commandable object
would typically perform any final reporting of data (such as the
setting of RESULTS parameters).close in interface nxm.sys.inc.Commandableclose in class nxm.sys.lib.CommandCommandable.NOOP if this method does no work.Commandable.NORMAL if this method successfully completes.Results,
Commandable.open(),
Commandable.process(),
State Diagram for a Commandable Objectpublic void setArchFN(java.lang.String value)
public void setArchDur(double value)
public void setArchOff(double value)
public void setSyncOff(double value)
public void setArchMode(java.lang.String value)
public void startArchiver(java.lang.String fname)
public void startArchiver(java.lang.String fname,
double dur)
public void startArchiver(java.lang.String fname,
double off,
double dur)
public void startArchiver()
public void stopArchiver()
public void setReplay(java.lang.String value)
PicSlavepublic void setRate(int value)
public void setFreq(double value)
public void setFreqs(nxm.sys.lib.Data value)
public void setDec(int value)
public void setGain(int value)
public void setRatio(double value)
public void setSelect(int value)
public void setChannel(int value)
public void setEnable(int value)
public void setMonitor(java.lang.String value)
public void setStats(int value)
public void setMinGain(int value)
public void setMaxGain(int value)
public void setAgcLevel(double value)
public void setAgcWidth(double value)
public void setGPW(nxm.sys.libg.GValue value)
public java.lang.String getReplay()
PicSlavepublic int getDec()
public int getGain()
public int getRate()
public double getRatio()
public double getFreq()
public java.lang.String getPort()
public int getRfGain()
public double getRfFreq()
public int getChannel()
public int getCycle()
public long getIndex()
public double getProgress()
nxm.sys.lib.Command0.0 -> 1.0 progress based on input file.getProgress in class nxm.sys.lib.Commandpublic double getBytes()
public double getBytesOut()
public int getSkip()
public java.lang.String getMonitor()
public nxm.sys.lib.Time getTime()
public DevIce.TimeCode getTimeCode()
public java.lang.String getFormat()
public int getHBLost()
public int getPFull()
public int getCBLost()
public int getDmaMode()
PicSlavegetDmaMode in interface PicSlavepublic double getOffset()
public MDevIce getDevIce()
public Archiver getArchiver()
public java.lang.String getArchFN()
public java.lang.String getArchMode()
public double getArchDur()
public double getArchOff()
public double getArchTop()
public nxm.sys.lib.Table getArchKW()
public double getSyncOff()
public ICEPacket getPkt()
public ICEPacket getAPkt()
public float getMBPS()
public int getTCMode()
public boolean isTuner()
public double getDelta()
public double getChannelFreq(int chn)
public void setAGC(nxm.sys.lib.Table tbl)
public void setRfGain(int value)
public void setRfFreqKWO(double value)
public void setRfFreq(double value)
public nxm.sys.lib.Table getTable(nxm.sys.lib.Table t)
public java.lang.String[] getKeys()
nxm.sys.inc.KeyablegetKeys in interface nxm.sys.inc.Keyablepublic java.lang.Object setKey(java.lang.String key,
java.lang.Object value)
nxm.sys.inc.KeyablesetKey in interface nxm.sys.inc.Keyablekey - The key identifying the value.value - The new value to associate with the key.value) or the value that would be returned by Keyable.getKey(String)
immediately after this method call. Since there can be some ambiguity the return value here should
probably be ignored.public java.lang.Object getKey(java.lang.String key)
nxm.sys.inc.KeyablegetKey in interface nxm.sys.inc.Keyablekey - The key identifying the value.public int getChnGain(int chan)
public static void setTime(nxm.sys.lib.DataFile df,
double wsec,
double fsec)