|
||||||||
| 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.louver.ElmoLouver
public class ElmoLouver
| Nested Class Summary | |
|---|---|
class |
ElmoLouver.ElmoLouverAttributes
|
| 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 | |
|---|---|
ElmoLouver()
|
|
| Method Summary | |
|---|---|
long |
center(int speedCounts)
Find the center of the current Hall effect feedback position. |
protected ScheduleSpecifier |
createDefaultSampleSchedule()
required by PolledInstrumentService |
long |
findBoundary(boolean positive,
int speedCounts)
Find and stop at the nearest Hall sensor feedback transition location. |
boolean |
getInvertHallPosition()
If invertHallPosition is true, the order of the feedback readings is reversed, ranging from 15-0 instead of 0-15. |
double |
getLouverPositionDegrees()
Get louver position (in engineering units) |
double |
getLouverPositionPercent()
Get louver position (as a percent of full travel) |
java.lang.String |
getLouverSampleMessage()
return a message indicating the state of several motor registers |
java.lang.String |
getLouverStatusMessage()
return a message indicating the state of several motor registers |
PacketParser |
getParser()
Return a PacketParser. |
void |
home(int position,
boolean setPx,
long counterValue,
int vLo,
int vHi)
Home to one of the louver's 16 Hall effect position feedback switches. |
void |
home(int position,
int velocityCounts)
Home to one of the louver's 16 Hall effect position feedback switches. |
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 |
setInvertHallPosition(boolean value)
If invertHallPosition is true, the order of the feedback readings is reversed, ranging from 15-0 instead of 0-15. |
void |
setLouverDegrees(double positionDegrees)
Set an interpolated louver position between _louverUnitsMin and _louverUnitsMax. |
void |
setLouverPercent(double positionPercent)
Set an interpolated louver position between _louverUnitsMin and _louverUnitsMax. |
| 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 ElmoLouver()
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 setInvertHallPosition(boolean value)
setInvertHallPosition in interface ElmoLouverIFpublic boolean getInvertHallPosition()
getInvertHallPosition in interface ElmoLouverIF
public long findBoundary(boolean positive,
int speedCounts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
findBoundary in interface ElmoLouverIFpositive - If positive is true, find the transition by moving in the positive direction,
otherwise move in the negative direction.speedCounts - operate at speedCounts counts/sec
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public long center(int speedCounts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
center in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void home(int position,
int velocityCounts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
home in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void home(int position,
boolean setPx,
long counterValue,
int vLo,
int vHi)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
ElmoLouverIF
home in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setLouverPercent(double positionPercent)
throws java.lang.IllegalArgumentException,
java.lang.Exception
setLouverPercent in interface ElmoLouverIFjava.lang.IllegalArgumentException
java.lang.Exception
public void setLouverDegrees(double positionDegrees)
throws java.lang.IllegalArgumentException,
java.lang.Exception
setLouverDegrees in interface ElmoLouverIFjava.lang.IllegalArgumentException
java.lang.Exception
public double getLouverPositionDegrees()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
getLouverPositionDegrees in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public double getLouverPositionPercent()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
getLouverPositionPercent in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public java.lang.String getLouverStatusMessage()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
getLouverStatusMessage in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public java.lang.String getLouverSampleMessage()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
getLouverSampleMessage in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
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
public PacketParser getParser()
throws NotSupportedException
getParser in interface InstrumentgetParser in class BaseInstrumentServiceNotSupportedException
public java.lang.Object parseDataPacket(SensorDataPacket pkt)
throws InvalidDataException
InvalidDataException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||