nxm.ice.prim
Class sourcepic

java.lang.Object
  extended by nxm.sys.lib.Command
      extended by nxm.sys.lib.Primitive
          extended by nxm.ice.prim.sourcepic
All Implemented Interfaces:
java.lang.Runnable, PicSlave, nxm.sys.inc.Commandable, nxm.sys.inc.Constants, nxm.sys.inc.DataTypes, nxm.sys.inc.IDable, nxm.sys.inc.MessageHandler

public final class sourcepic
extends nxm.sys.lib.Primitive
implements PicSlave

Synchronize a PIC acquisition into a Midas file/pipe. If /MULTI=n is used, this primitive controls multiple ports at once.

Author:
Jeff Schoen

Field Summary
static java.lang.String algorithmList
           
static java.lang.String archList
           
static java.lang.String pktmodeList
           
static java.lang.String replayList
           
static java.lang.String syncList
           
 
Fields inherited from class nxm.sys.lib.Primitive
bufSize, todo
 
Fields inherited from class nxm.sys.lib.Command
args, id, isPiped, M, MA, MD, MQ, MR, MT, name, option, queue, state, support, thread, verbose
 
Fields inherited from interface nxm.sys.inc.DataTypes
ALAW, ASCII, BMAX, BMIN, BOOL, BYTE, COMPLEX, CONVERT_TYPE_LIST, CRAY, DATA_MODE_LIST, DATA_TYPE_LIST, DMAX, DMIN, DOUBLE, EEEI, falseStates, FLOAT, FMAX, FMIN, IEEE, IMAX, IMIN, INT, LMAX, LMIN, LONG, MATRIX, modeList, MULT_DATA_MODE_LIST, NIBBLE, NONHOMOGENEOUS, NUMBER, NUMERIC_DATA_TYPE_LIST, numericTypeList, OBJECT, PACKED, QUAD, repList, RESULT_TYPE_LIST, SCALAR, STRING, TABLE, TRANSMATRIX, trueStates, typeList, ULAW, VAX, VECTOR, XLONG, XMAX, XMIN, XMODE
 
Fields inherited from interface nxm.sys.inc.Constants
ANGULAR_VELOCITY_PRECESSING_COR, B1G, B1K, B1M, B1T, B64K, CYC2RAD, DEF_EARTH_ANGULAR_VELOCITY, 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, 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
 
Fields inherited from interface nxm.sys.inc.Commandable
ABORT, CLOSE, DONE, EXIT, FINISH, INIT, NOOP, NORMAL, OPEN, PAUSE, PROCESS, RESTART, RESUME, SLEEP, START, stateList, stateListOffset, STOP, SUSPEND, WAIT
 
Constructor Summary
sourcepic()
           
 
Method Summary
 int close()
           
 java.lang.String getAlgorithm()
           
 Archiver getArchiver()
           
 int getArgument(int n)
           
 double getBytes()
           
 int getCBLost()
           
 int getChannel()
           
 int getCycle()
           
 int getDec()
           
 MDevIce getDevIce()
           
 int getDmaMode()
           
 java.lang.String getFormat()
           
 double getFreq()
           
 int getGain()
           
 int getHBLost()
           
 long getIndex()
           
 double getOffset()
           
 int getRate()
           
 double getRatio()
           
 java.lang.String getReplay()
           
 int getSeqErr()
           
 int getSeqFill()
           
 int getSkip()
           
 nxm.sys.lib.Time getTime()
           
 DevIce.TimeCode getTimeCode()
           
 void ipconn(java.lang.String addr)
           
 void ipdisc(java.lang.String addr)
           
 void join(java.lang.String addr)
           
 void leave(java.lang.String addr)
           
 int open()
           
 int process()
           
 void setAlgorithm(java.lang.String value)
           
 void setArgument(int n, int value)
           
 void setBreak(int value)
           
 void setChannel(int value)
           
 void setDec(int value)
           
 void setFreq(double value)
           
 void setGain(int value)
           
 void setRate(int value)
           
 void setRatio(double value)
           
 void setReplay(java.lang.String value)
           
 void setStats(int value)
           
 void setVerbose(int value)
           
 void setVLAN(int addr)
           
 void startArchiver(java.lang.String fname)
           
 void stopArchiver()
           
 
Methods inherited from class nxm.sys.lib.Primitive
isPipable, todo, todo
 
Methods inherited from class nxm.sys.lib.Command
checkin, checkout, getArgs, getCmdParent, getContext, getID, getMQ, getName, getPollTime, getState, isStateChanged, processException, processMessage, processMessage, processMessages, processReady, restart, run, runSingle, setArg, setArgs, setCmdParent, setPollTime, setState, setState, setVerbose, stateToString, thisIsMe, toString, verify, whoIsThis
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

replayList

public static java.lang.String replayList

algorithmList

public static java.lang.String algorithmList

syncList

public static java.lang.String syncList

archList

public static java.lang.String archList

pktmodeList

public static java.lang.String pktmodeList
Constructor Detail

sourcepic

public sourcepic()
Method Detail

open

public int open()
Specified by:
open in interface nxm.sys.inc.Commandable
Overrides:
open in class nxm.sys.lib.Command

process

public int process()
Specified by:
process in interface nxm.sys.inc.Commandable
Overrides:
process in class nxm.sys.lib.Command

close

public int close()
Specified by:
close in interface nxm.sys.inc.Commandable
Overrides:
close in class nxm.sys.lib.Command

startArchiver

public void startArchiver(java.lang.String fname)

stopArchiver

public void stopArchiver()

setReplay

public void setReplay(java.lang.String value)
Specified by:
setReplay in interface PicSlave

setDec

public void setDec(int value)

setGain

public void setGain(int value)

setRate

public void setRate(int value)

setFreq

public void setFreq(double value)

setRatio

public void setRatio(double value)

setChannel

public void setChannel(int value)

setAlgorithm

public void setAlgorithm(java.lang.String value)

setArgument

public void setArgument(int n,
                        int value)

setBreak

public void setBreak(int value)

setVerbose

public void setVerbose(int value)

setStats

public void setStats(int value)

setVLAN

public void setVLAN(int addr)

join

public void join(java.lang.String addr)

ipconn

public void ipconn(java.lang.String addr)

leave

public void leave(java.lang.String addr)

ipdisc

public void ipdisc(java.lang.String addr)

getReplay

public java.lang.String getReplay()
Specified by:
getReplay in interface PicSlave

getDec

public int getDec()

getGain

public int getGain()

getRate

public int getRate()

getRatio

public double getRatio()

getFreq

public double getFreq()

getChannel

public int getChannel()

getCycle

public int getCycle()

getIndex

public long getIndex()

getBytes

public double getBytes()

getSkip

public int getSkip()

getAlgorithm

public java.lang.String getAlgorithm()

getArgument

public int getArgument(int n)

getTime

public nxm.sys.lib.Time getTime()

getTimeCode

public DevIce.TimeCode getTimeCode()

getFormat

public java.lang.String getFormat()

getHBLost

public int getHBLost()

getCBLost

public int getCBLost()

getDmaMode

public int getDmaMode()
Specified by:
getDmaMode in interface PicSlave

getOffset

public double getOffset()

getDevIce

public MDevIce getDevIce()

getArchiver

public Archiver getArchiver()

getSeqErr

public int getSeqErr()

getSeqFill

public int getSeqFill()