public class SerialManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SerialManager.DetectedResources |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTO_DETECT_3D_FIRMWARE |
static java.lang.String |
AUTO_DETECT_PROJECTOR |
static int |
CPU_LIMITING_DELAY |
static java.lang.String |
FIRST_AVAILABLE_PORT |
static int |
TIME_OUT
Milliseconds to block while waiting for port open
|
Modifier and Type | Method and Description |
---|---|
void |
assignSerialPortToFirmware(Printer printer,
SerialCommunicationsPort identifier) |
void |
assignSerialPortToProjector(Printer printer,
SerialCommunicationsPort identifier) |
java.lang.String[] |
getPortNames() |
SerialManager.DetectedResources |
getProjectorModel(SerialCommunicationsPort currentIdentifier,
ComPortSettings printerSettings) |
SerialCommunicationsPort |
getSerialDevice(java.lang.String comport) |
java.util.List<SerialCommunicationsPort> |
getSerialDevices() |
static SerialManager |
Instance() |
boolean |
is3dFirmware(SerialCommunicationsPort currentIdentifier,
ComPortSettings newComPortSettings) |
void |
removeAssignments(Printer printer)
This should be called when you stop using the port.
|
public static final java.lang.String FIRST_AVAILABLE_PORT
public static final java.lang.String AUTO_DETECT_3D_FIRMWARE
public static final java.lang.String AUTO_DETECT_PROJECTOR
public static final int TIME_OUT
public static final int CPU_LIMITING_DELAY
public static SerialManager Instance()
public SerialManager.DetectedResources getProjectorModel(SerialCommunicationsPort currentIdentifier, ComPortSettings printerSettings)
public boolean is3dFirmware(SerialCommunicationsPort currentIdentifier, ComPortSettings newComPortSettings)
public void assignSerialPortToProjector(Printer printer, SerialCommunicationsPort identifier) throws AlreadyAssignedException, InappropriateDeviceException
public void assignSerialPortToFirmware(Printer printer, SerialCommunicationsPort identifier) throws AlreadyAssignedException, InappropriateDeviceException
public SerialCommunicationsPort getSerialDevice(java.lang.String comport) throws InappropriateDeviceException
InappropriateDeviceException
public java.util.List<SerialCommunicationsPort> getSerialDevices()
public void removeAssignments(Printer printer)
public java.lang.String[] getPortNames()