BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
Public Member Functions | List of all members
unit.devices.DeviceCommunicator Interface Reference
Inheritance diagram for unit.devices.DeviceCommunicator:
Inheritance graph
[legend]
Collaboration diagram for unit.devices.DeviceCommunicator:
Collaboration graph
[legend]

Public Member Functions

void setInputStreamData (String dataForDeviceToRead)
 
String getOutputStreamData ()
 
void clear ()
 
- Public Member Functions inherited from kernel.serial_ports.PortCommunicator
InputStream getInputStream () throws IOException
 
OutputStream getOutputStream () throws IOException
 

Detailed Description

Describes a test fixture that can both function as a kernel.serial_ports.PortCommunicator, and allow a test to read the results of what was written to the OutputStream.

This is meant to serve as a representation of what the device will be writing to.

The data that the device reads can be edited, and the data that the device wrote can be retrieved

Definition at line 16 of file DeviceCommunicator.java.

Member Function Documentation

void unit.devices.DeviceCommunicator.clear ( )

Reset the streams to their initial configuration

Implemented in unit.devices.DevicesTestCase.CommunicationMonitor.

String unit.devices.DeviceCommunicator.getOutputStreamData ( )
Returns
The data that the device wrote to its output stream

Implemented in unit.devices.DevicesTestCase.CommunicationMonitor.

void unit.devices.DeviceCommunicator.setInputStreamData ( String  dataForDeviceToRead)
Parameters
dataForDeviceToReadThe data that the input stream will read

Implemented in unit.devices.DevicesTestCase.CommunicationMonitor.


The documentation for this interface was generated from the following file:
Git Repo