|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.core.MiscInstrumentPort
public class MiscInstrumentPort
Implements InstrumentPort interface for a miscellaneous port. May have a power port.
| Field Summary | |
|---|---|
protected boolean |
_instrumentPortSuspended
|
protected static org.apache.log4j.Logger |
_log4j
Log4j logger |
protected java.lang.String |
_nullString
|
protected java.lang.String |
_params
|
protected java.lang.String |
_portName
|
protected PowerPort |
_powerPort
|
| Fields inherited from interface org.mbari.siam.core.InstrumentPort |
|---|
RTS_SENSE |
| Constructor Summary | |
|---|---|
MiscInstrumentPort(java.lang.String portName,
PowerPort power,
java.lang.String params)
Create a MiscInstrumentPort. |
|
| Method Summary | |
|---|---|
void |
connectPower()
Connect instrument to power. |
void |
disableCommunications()
Disable communications |
void |
disconnectPower()
Disconnect instrument from power. |
void |
enableCommunications()
Enable communications |
java.lang.String |
getCommPortName()
get the commport name |
float |
getCurrentLevel()
Get the current level of the PowerPort. |
int |
getCurrentLimit()
Get current limit of port. |
java.io.InputStream |
getInputStream()
get an InputStream to the instrument |
InstrumentConsole |
getInstrumentConsole()
get a console to an Instrument |
InstrumentPortOutputStream |
getOutputStream()
get an OutputStream to the instrument |
java.lang.String |
getParams()
Get the parameters |
java.lang.String |
getStatusMessage()
Sample health/status sensors. |
java.lang.String |
getStatusSummaryMessage()
Get health/status summary string, including extreme values. |
java.lang.String |
getTerseStatus()
Get health/status summary string. |
float |
getVoltageLevel()
Get the voltage level of the PowerPort. |
void |
initialize()
initialize the InstrumentPort |
void |
isolatePort()
Isolate comms and power from port. |
boolean |
isSuspended()
get the suspend state of the instrument port |
void |
resetStatus()
Reset status. |
void |
resume()
resume instrument comms from suspended state |
void |
setCommsMode(CommsMode commsMode)
Set communications mode (RS422,RS485,RS232) satisfies InstrumentPort interface |
void |
setCurrentLimit(int currentLimit)
Set current limit on port. |
void |
shutDown()
shutdown the intrument port. |
void |
suspend()
suspends comms so another application can communicate with the instrument |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log4j
protected java.lang.String _portName
protected PowerPort _powerPort
protected boolean _instrumentPortSuspended
protected java.lang.String _nullString
protected java.lang.String _params
| Constructor Detail |
|---|
public MiscInstrumentPort(java.lang.String portName,
PowerPort power,
java.lang.String params)
| Method Detail |
|---|
public void initialize()
throws InitializeException
initialize in interface InstrumentPortInitializeExceptionpublic java.lang.String getParams()
public void resume()
resume in interface InstrumentPortpublic void suspend()
suspend in interface InstrumentPortpublic void shutDown()
shutDown in interface InstrumentPortpublic boolean isSuspended()
isSuspended in interface InstrumentPortpublic java.lang.String getCommPortName()
getCommPortName in interface InstrumentPort
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface InstrumentPortjava.io.IOException
public InstrumentPortOutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface InstrumentPortjava.io.IOException
public InstrumentConsole getInstrumentConsole()
throws java.io.IOException
getInstrumentConsole in interface InstrumentPortjava.io.IOExceptionpublic void enableCommunications()
enableCommunications in interface InstrumentPortpublic void disableCommunications()
disableCommunications in interface InstrumentPortpublic void connectPower()
connectPower in interface InstrumentPortpublic void disconnectPower()
disconnectPower in interface InstrumentPort
public void setCurrentLimit(int currentLimit)
throws RangeException,
NotSupportedException
setCurrentLimit in interface InstrumentPortRangeException
NotSupportedException
public int getCurrentLimit()
throws NoDataException,
NotSupportedException
getCurrentLimit in interface InstrumentPortNoDataException
NotSupportedException
public float getVoltageLevel()
throws NoDataException,
NotSupportedException
getVoltageLevel in interface InstrumentPortNoDataException
NotSupportedException
public float getCurrentLevel()
throws NoDataException,
NotSupportedException
getCurrentLevel in interface InstrumentPortNoDataException
NotSupportedExceptionpublic void isolatePort()
isolatePort in interface InstrumentPortpublic java.lang.String getStatusMessage()
getStatusMessage in interface InstrumentPortpublic java.lang.String getStatusSummaryMessage()
getStatusSummaryMessage in interface InstrumentPortpublic void resetStatus()
resetStatus in interface InstrumentPortpublic java.lang.String getTerseStatus()
getTerseStatus in interface InstrumentPortpublic void setCommsMode(CommsMode commsMode)
setCommsMode in interface InstrumentPort
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||