public enum ConnectionState extends java.lang.Enum<ConnectionState>
The three states CONNECTED
,SIMULATION
and SHUTDOWN
are what could be called 'user requested states' and associated with
the SIMU and MACH buttons in the user interface as follows:
SIMU MACH Requested State -------------------------- ON offSIMULATION
off ONCONNECTED
off offSHUTDOWN
EazyCNC periodically interrogates all the system components, including
plugins, about their state and if the they are not in the requested
state it will call the setConnectionState
for that component.
All the other states are error states in the sense that the requested
state is either CONNECTED
or SIMULATION
but
for some reason (as described by the actual state) the component is
not able to fullfill the reques.
Enum Constant and Description |
---|
ACCESS_DENIED
Indicates that the hardware in question cannot be used because
of operating system user permissions do not allow it
|
CONNECTED
Indicates that the hardware in question has been successfully found and
initialized and is functioning normally.
|
CONTROLLER_FOUND
Indicates that the hardware in question has been found but for some
unknown reason is not functioning properly.
|
DEVICE_BUSY
Indicates that the the specified hardware has been found but is in use by some other process
or application.
|
DEVICE_INVALID
Indicates that although the hardware/device/port was found it was not of the expected type.
|
DEVICE_NOT_FOUND
Indicates that the specified hardware (for example COM port) was not found.
|
DEVICE_NOT_RESPONDING
Indicates that the the specified hardware has been found and connected successfully but is not responding as
it should.
|
NO_PORT_SPECIFIED
Indicates that the associated hardware has not (for example COM port) has not been specified.
|
SHUTDOWN
Indicates that the system is or should be in shut down state in which
neither the hardware simulation nor the actual hardware is functioning.
|
SIMULATION
Indicates that the system or component is in the simulation mode and everything
functions as if the real hardware was available.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionState SHUTDOWN
public static final ConnectionState CONTROLLER_FOUND
public static final ConnectionState ACCESS_DENIED
public static final ConnectionState CONNECTED
public static final ConnectionState SIMULATION
public static final ConnectionState NO_PORT_SPECIFIED
public static final ConnectionState DEVICE_INVALID
public static final ConnectionState DEVICE_NOT_FOUND
public static final ConnectionState DEVICE_NOT_RESPONDING
public static final ConnectionState DEVICE_BUSY
public static ConnectionState[] values()
for (ConnectionState c : ConnectionState.values()) System.out.println(c);
public static ConnectionState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null