public class NetworkInterface extends DeviceInterface
Modifier and Type | Field and Description |
---|---|
java.net.Socket |
deviceSocket |
java.lang.String |
itsHost |
int |
itsPort |
attached, ChannelAccess_DIRECT, ChannelAccess_EVENTS, ChannelAccess_NONE, contrChannelsInUse, currSampleTime, datVal, DeviceType_IN, DeviceType_INOUT, DeviceType_NONE, DeviceType_OUT, fw, isActive, isDataInRunning, isDataLoggingReady, itsControlDesign, itsDeviceTimer, itsDeviceType, itsDurationTraceTime, itsEngine, itsHardware, itsInstrumentPanel, itsOffVoltage, itsOnVoltage, itsReader, itsRunTime, itsSamplesPerSec, itsSerNum, itsSettings, itsStartTraceTime, itsTimerRowCounter, itsType, itsWriter, kSamplesPerSec, lastSampleTime, listValues, logFileName, loggerIsRunning, operChannelsInUse, sensChannelsInUse, sensorTraces, startTimeDataIn, timeDevice, validRange
Constructor and Description |
---|
NetworkInterface(java.lang.Object[] theSettings) |
Modifier and Type | Method and Description |
---|---|
void |
close()
closes the interfaces
|
java.lang.String |
echoConsole() |
void |
initializeFromSettings() |
static void |
main(java.lang.String[] args) |
void |
makeHardwareInterface()
looks for and initializes the Terminal controller
|
java.lang.String |
sendCommand(java.lang.String cmd)
send a command
|
activateUsedChannels, addControlDeviceOperator, addDeviceOperator, addSensorDeviceOperator, autoColorTraces, closeEventInterface, completeInterface, confirmChannelRange, confirmInputCapable, confirmMinNChannels, confirmOutputCapable, controlAllDevices, controlDeviceFromSchedule, finalizeInterface, getAnalogOutHardware, getAnalogSensorHardware, getChannelAccess, getControlDeviceOperator, getControlHardware, getDataRate, getDeviceOperator, getDeviceOperatorForChannel, getDeviceType, getHardware, getHotShapeList, getItsName, getNControlDeviceOperators, getNDeviceOperators, getNInterfaceChannels, getNSensorDeviceOperators, getSensorDeviceOperator, getSensorHardware, getSensorValue, getSensorValue, getTracker, isValidControlHardware, isValidSensorHardware, list, listDeviceInterface, listDeviceOperators, makeControlDeviceOperator, makeDeviceOperator, makeInterface, makeSensorDeviceOperator, makeSineWave, prepareEventInterface, resetAllChannels, resetTraces, setByteValue, setByteValue, setChannelAccess, setDataRate, setDeviceType, setEnabled, setEngaged, setInterface, setItsName, setNControlInterfaceChannels, setTraceTimes, setTracker, setupDataLogging, setValidRange, setValue, startDataIn_DirectPolling, startDataIn_DirectPolling, startDataIn_EventDriven, startDataIn, startEventInterface, stopDataIn, stopEventInterface, toString, turnOff, turnOn, updateSamplingRate, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public java.net.Socket deviceSocket
public java.lang.String itsHost
public int itsPort
public void initializeFromSettings() throws java.lang.Exception
initializeFromSettings
in class DeviceInterface
java.lang.Exception
public void makeHardwareInterface() throws java.lang.Exception
makeHardwareInterface
in class DeviceInterface
java.lang.Exception
- ...public java.lang.String sendCommand(java.lang.String cmd)
DeviceInterface
sendCommand
in class DeviceInterface
cmd
- the command stringpublic java.lang.String echoConsole()
public void close() throws java.lang.Exception
close
in class DeviceInterface
java.lang.Exception
- ...public static void main(java.lang.String[] args)
RH, 2017