|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.mbari.siam.core.DeviceService
org.mbari.siam.core.BaseInstrumentService
org.mbari.siam.core.PolledInstrumentService
org.mbari.siam.foce.devices.elmo.base.ElmoService
org.mbari.siam.foce.devices.elmo.thruster.ElmoThruster
public class ElmoThruster
| Nested Class Summary | |
|---|---|
class |
ElmoThruster.ElmoThrusterAttributes
|
| Nested classes/interfaces inherited from class org.mbari.siam.foce.devices.elmo.base.ElmoService |
|---|
ElmoService.Attributes |
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
_log4j
Log4j logger |
| Fields inherited from class org.mbari.siam.foce.devices.elmo.base.ElmoService |
|---|
_attributes, _elmo, _precision, CLOSED_LOOP, DEFAULT_COUNTS_PER_REVOLUTION, DEFAULT_PRECISION, df, DFL_CURRENT_LIMIT_MILLIAMPS, DFL_MAX_SAMPLE_BYTES, MAX_PRECISION, MIN_PRECISION, OPEN_LOOP, serialVersionUID |
| Fields inherited from class org.mbari.siam.core.BaseInstrumentService |
|---|
_defaultSamplerTask, _defaultSampleScheduleName, _errorCache, _instrumentAttributes, _lastPacket, _lastSensorDataPacket, _maxSampleBytes, _messagePacket, _nPowerRequests, _nWakeRequests, _packetLog, _recordType, _running, _samplerWakeupTime, _scheduleKey, _schedules, _sensorDataPacket, _turbinator, MAX_BASE_RECORDTYPE, RECORDTYPE_DEFAULT, RECORDTYPE_METADATA, RECORDTYPE_UNDEFINED |
| Fields inherited from class org.mbari.siam.core.DeviceService |
|---|
_fromDevice, _instrumentPort, _nodeProperties, _parentNode, _regEntry, _sandBox, _serviceCachePath, _serviceName, _servicePropertiesPath, _serviceXMLPath, _toDevice, CACHED_PROPERTIES_FILENAME, PROPERTIES_FILENAME, XML_FILENAME |
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Fields inherited from interface org.mbari.siam.distributed.Device |
|---|
ERROR, INITIAL, INSTRUMENT_STATE, MDATA_ALL, OK, SAFE, SAMPLING, SERVICE_ATTRIBUTES, SERVICE_CACHE, SERVICE_PROPERTIES, SERVICE_XML, SHUTDOWN, SLEEPING, SUSPEND, UNKNOWN |
| Constructor Summary | |
|---|---|
ElmoThruster()
|
|
| Method Summary | |
|---|---|
protected ScheduleSpecifier |
createDefaultSampleSchedule()
required by PolledInstrumentService |
PacketParser |
getParser()
Return a PacketParser. |
java.lang.String |
getThrusterSampleMessage()
return thruster sample string |
long |
getTSElapsedMsec()
Return the elapsed time since last turns sensor trigger (msec) |
int |
getTSState()
Return the turns sensor state |
java.lang.String |
getTSStateName()
return a mnemonic for turns sensor state |
long |
getTSTriggerCount()
Return number of times the turns sensor has been triggered since the last reset |
void |
initializeController()
Initialize motor controller |
protected void |
initializeInstrument()
Override default initializeInstrument. |
java.lang.Object |
parseDataPacket(SensorDataPacket pkt)
Parse a SensorDataPacket into a double[] array (used by infrastructure) |
protected int |
readSample(byte[] sample)
Override base class readSample (defined in BaseInstrumentService) |
void |
setTurnsSensorEnable(boolean value)
Enable or disable the turns sensor |
protected java.lang.String |
shutdownInstrument()
Perform any instrument-specific shutdown actions and optionally return a human-readable message (e.g. |
protected void |
stepStart(int startSpeed,
int endSpeed,
int increment,
long stepTime)
Brings up motor in step-wise fashion. |
protected java.lang.String |
switchElmoPower(boolean state)
Enable or disable power to Elmos Power is switched by memory mapped IO ports on an A/D card (not a standard power port) using foceio. |
| Methods inherited from class org.mbari.siam.core.PolledInstrumentService |
|---|
acquire, doScheduledTask, setAttributes |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mbari.siam.distributed.devices.ElmoIF |
|---|
beginMotion, counts2orpm, counts2rpm, delay, getCountsPerRevolution, getEncoderVelocity, getEncoderVelocity, getFaultRegister, getGearRatio, getJoggingVelocity, getPositionCounter, getPositionError, getStatusRegister, initializeController, isEnabled, jog, orpm2counts, ptpAbsolute, ptpRelative, readRegister, rpm2counts, setCountsPerRevolution, setEnable, setGearRatio, setJoggingVelocity, setPositionCounter, setPTPSpeed, setSerialMode, showConfiguration |
| Methods inherited from interface org.mbari.siam.distributed.Instrument |
|---|
acquireSample, addDefaultPacketFilters, annotate, cacheProperties, clearDefaultPacketFilters, clearPropertiesCache, disableSummary, enableSummary, getDefaultPacketFilters, getLastSample, getPackets, getPackets, getPortDiagnostics, getPortDiagnosticsSummary, getProperties, getProperty, getSampleSchedule, getSchedules, resetPortDiagnostics, setClock, setClock, setProperty, summaryEnabled |
| Methods inherited from interface org.mbari.siam.distributed.Device |
|---|
getChildren, getCommPortName, getFrameworkVersion, getId, getLocation, getMetadata, getName, getParent, getSamplingCount, getSamplingErrorCount, getSamplingRetryCount, getStatus, host, powerOff, powerOn, prepareToRun, resume, shutdown, suspend |
| Methods inherited from interface org.mbari.siam.distributed.DeviceServiceIF |
|---|
getName |
| Methods inherited from interface org.mbari.siam.core.ScheduleOwner |
|---|
addSchedule, getAllSchedules, getScheduleKey, removeAllSchedules, removeSchedule, resumeSchedule, sleepingUntil, suspendSchedule, syncSchedule |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log4j
| Constructor Detail |
|---|
public ElmoThruster()
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
protected ScheduleSpecifier createDefaultSampleSchedule()
throws ScheduleParseException
createDefaultSampleSchedule in class ElmoServiceScheduleParseException
protected void initializeInstrument()
throws InitializeException,
java.lang.Exception
initializeInstrument in class ElmoServiceInitializeException
java.lang.Exception
public void initializeController()
throws TimeoutException,
java.io.IOException,
java.lang.Exception,
java.rmi.RemoteException
initializeController in interface ElmoIFinitializeController in class ElmoServiceTimeoutException
java.io.IOException
java.lang.Exception
java.rmi.RemoteExceptionpublic void setTurnsSensorEnable(boolean value)
ElmoThrusterIF
setTurnsSensorEnable in interface ElmoThrusterIFpublic long getTSTriggerCount()
getTSTriggerCount in interface ElmoThrusterIFpublic long getTSElapsedMsec()
getTSElapsedMsec in interface ElmoThrusterIFpublic int getTSState()
getTSState in interface ElmoThrusterIFpublic java.lang.String getTSStateName()
getTSStateName in interface ElmoThrusterIF
public java.lang.String getThrusterSampleMessage()
throws TimeoutException,
java.io.IOException,
java.lang.Exception
getThrusterSampleMessage in interface ElmoThrusterIFTimeoutException
java.io.IOException
java.lang.Exception
protected int readSample(byte[] sample)
throws TimeoutException,
java.io.IOException,
java.lang.Exception
readSample in class ElmoServicesample - output buffer
TimeoutException
java.io.IOException
java.lang.Exception
protected void stepStart(int startSpeed,
int endSpeed,
int increment,
long stepTime)
throws java.lang.Exception
java.lang.Exception
public PacketParser getParser()
throws NotSupportedException
getParser in interface InstrumentgetParser in class BaseInstrumentServiceNotSupportedException
public java.lang.Object parseDataPacket(SensorDataPacket pkt)
throws InvalidDataException
InvalidDataException
protected java.lang.String shutdownInstrument()
throws java.lang.Exception
shutdownInstrument in class ElmoServicejava.lang.Exceptionprotected java.lang.String switchElmoPower(boolean state)
state - true for on, false for off
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||