|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.core.BaseInstrumentPort
org.mbari.siam.core.HttpInstrumentPort
public class HttpInstrumentPort
InstrumentPort implementation for Web-based instruments with URL interface.
| Nested Class Summary | |
|---|---|
class |
HttpInstrumentPort.InputStream
Input stream |
| Field Summary | |
|---|---|
protected HttpInstrumentPort.InputStream |
_input
|
protected static org.apache.log4j.Logger |
_log4j
Log4j logger |
protected java.lang.String |
_name
|
protected InstrumentPortOutputStream |
_output
|
| Fields inherited from class org.mbari.siam.core.BaseInstrumentPort |
|---|
_powerPort |
| Fields inherited from interface org.mbari.siam.core.InstrumentPort |
|---|
RTS_SENSE |
| Constructor Summary | |
|---|---|
HttpInstrumentPort(java.lang.String serverURLString,
PowerPort powerPort)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCommPortName()
get the name of the communications 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 |
void |
initialize()
initialize the InstrumentPort |
void |
resume()
resumes instrument comms from suspended state |
void |
suspend()
suspends comms so another application can communicate with the instrument |
| Methods inherited from class org.mbari.siam.core.BaseInstrumentPort |
|---|
connectPower, disableCommunications, disconnectPower, enableCommunications, getCurrentLevel, getCurrentLimit, getStatusMessage, getStatusSummaryMessage, getTemperature, getTerseStatus, getVoltageLevel, isolatePort, isSuspended, resetStatus, setCommsMode, setCurrentLimit, shutDown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mbari.siam.core.InstrumentPort |
|---|
connectPower, disableCommunications, disconnectPower, enableCommunications, getCurrentLevel, getCurrentLimit, getStatusMessage, getStatusSummaryMessage, getTerseStatus, getVoltageLevel, isolatePort, isSuspended, resetStatus, setCommsMode, setCurrentLimit, shutDown |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log4j
protected java.lang.String _name
protected HttpInstrumentPort.InputStream _input
protected InstrumentPortOutputStream _output
| Constructor Detail |
|---|
public HttpInstrumentPort(java.lang.String serverURLString,
PowerPort powerPort)
throws java.net.MalformedURLException,
java.io.IOException
java.net.MalformedURLException
java.io.IOException| Method Detail |
|---|
public void initialize()
throws InitializeException
initialize in interface InstrumentPortinitialize in class BaseInstrumentPortInitializeExceptionpublic void resume()
resume in interface InstrumentPortpublic void suspend()
suspend 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.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||