public class EazyCNC
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static eazycnc.Main |
m_Main |
Constructor and Description |
---|
EazyCNC() |
Modifier and Type | Method and Description |
---|---|
static void |
executeAction(java.lang.String name,
boolean start)
executes names action.
|
static MachState |
getMachState()
returns the MachState object that represent the current machine state.
|
static java.lang.String |
getPluginName(Plugin plugin)
given a reference to plugin returns its name that can be displayed in
user interface to identify it.
|
static double |
getToolDiameter(int toolNo)
returns the tool diameter from the tool table for the given tool number
|
static double |
getToolLength(int toolNo)
returns the tool length from the tool table for the given tool number
|
static Variable |
getVariable(int param)
returns the Variable that stores the parameter
param . |
public static MachState getMachState()
public static java.lang.String getPluginName(Plugin plugin)
plugin
- whose name will be returnedpublic static Variable getVariable(int param)
param
.
This method throws an IllegalArgumentException
if the specified
parameter does not exist.
This method is handy for obtaining a variable that represent a parameter and onto which user interface components can be connected.
param
- an integer specifying the parameterpublic static double getToolDiameter(int toolNo)
toolNo
- the tool numberpublic static double getToolLength(int toolNo)
toolNo
- the tool numberpublic static void executeAction(java.lang.String name, boolean start)
Most of the high level EazyCNC actions, such as RUN,HOLD or STOP, can be executed by name by calling this function.
Some actions execute, once started, until stopped, there fore this methods takes a second parameter defining weather to start or stop the action.
Following actions are available:
name
- the action namestart
- true if the action is to start, false if it is to stop