|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.foce.deployed.FOCEPowerPort
public class FOCEPowerPort
| Field Summary | |
|---|---|
protected java.lang.String |
_name
|
protected int |
_numBits
|
protected int |
_powerBit
|
protected boolean |
_powerOn
|
protected FOCERelayBoard |
_relayBoard
|
| Constructor Summary | |
|---|---|
FOCEPowerPort(java.lang.String name,
FOCERelayBoard board,
int powerBit,
int numBits)
|
|
| Method Summary | |
|---|---|
void |
connectPower()
Connect instrument to power. |
void |
disableCommunications()
Disable communications |
void |
disconnectPower()
Disconnect instrument from power. |
void |
enableCommunications()
Enable communications |
boolean |
equals(int boardIndex,
int powerBit)
True if this FOCEPowerPort represents the given relay board index and power bit |
float |
getCurrentLevel()
Get the current level of the DpaChannel in amps. |
int |
getCurrentLimit()
Get current limit on port. |
java.lang.String |
getName()
Return name. |
java.lang.String |
getStatusMessage()
Get status message. |
java.lang.String |
getStatusSummaryMessage()
Get status summary message. |
float |
getTemperature()
Get temperature. |
java.lang.String |
getTerseStatus()
Get a terse status message |
float |
getVoltageLevel()
Get the voltage level in volts. |
void |
initialize()
Initialize the port. |
void |
isolatePort()
Isolate comms and power from port. |
void |
resetStatus()
Reset status. |
void |
setCommsMode(CommsMode commsMode)
Set communications mode (RS422,RS485,RS232) satisfies InstrumentPort interface |
void |
setCurrentLimit(int currentLimit)
Set current limit on port. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _name
protected FOCERelayBoard _relayBoard
protected int _powerBit
protected int _numBits
protected boolean _powerOn
| Constructor Detail |
|---|
public FOCEPowerPort(java.lang.String name,
FOCERelayBoard board,
int powerBit,
int numBits)
throws NotSupportedException,
java.io.IOException
NotSupportedException
java.io.IOException| Method Detail |
|---|
public java.lang.String getName()
getName in interface PowerPortpublic void initialize()
initialize in interface PowerPortpublic void connectPower()
connectPower in interface PowerPortpublic void disconnectPower()
disconnectPower in interface PowerPort
public int getCurrentLimit()
throws NotSupportedException
getCurrentLimit in interface PowerPortNotSupportedExceptionpublic float getVoltageLevel()
getVoltageLevel in interface PowerPort
public float getCurrentLevel()
throws NotSupportedException
getCurrentLevel in interface PowerPortNotSupportedException
public void setCurrentLimit(int currentLimit)
throws NotSupportedException
setCurrentLimit in interface PowerPortNotSupportedExceptionpublic void enableCommunications()
enableCommunications in interface PowerPortpublic void disableCommunications()
disableCommunications in interface PowerPortpublic void isolatePort()
isolatePort in interface PowerPort
public float getTemperature()
throws NotSupportedException
PowerPort
getTemperature in interface PowerPortNotSupportedExceptionpublic java.lang.String getStatusMessage()
getStatusMessage in interface PowerPortpublic java.lang.String getStatusSummaryMessage()
getStatusSummaryMessage in interface PowerPortpublic java.lang.String getTerseStatus()
getTerseStatus in interface PowerPortpublic void resetStatus()
resetStatus in interface PowerPortpublic void setCommsMode(CommsMode commsMode)
setCommsMode in interface PowerPort
public boolean equals(int boardIndex,
int powerBit)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||