BowlerKernel
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice Class Reference
Inheritance diagram for com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice:
Collaboration graph
[legend]

Public Member Functions

 GcodeDevice (NRSerialPort serial)
 
AbstractLink getHeater (LinkConfiguration axis)
 
AbstractLink getLink (LinkConfiguration axis)
 
void disconnectDeviceImp ()
 
boolean connectDeviceImp ()
 
ArrayList< String > getNamespacesImp ()
 
String runLine (String line)
 
void runFile (File gcode)
 
int getTimeoutMs ()
 
void setTimeoutMs (int timeoutMs)
 
GCodeDeviceConfiguration getConfiguration ()
 
void flush (double seconds)
 
void loadCurrent ()
 
- Public Member Functions inherited from com.neuronrobotics.sdk.common.NonBowlerDevice
boolean connect ()
 
boolean isAvailable () throws InvalidConnectionException
 
void disconnect ()
 
void onAsyncResponse (BowlerDatagram data)
 
ArrayList< String > getNamespaces ()
 
- Public Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractDevice
void addConnectionEventListener (final IDeviceConnectionEventListener l)
 
void removeConnectionEventListener (IDeviceConnectionEventListener l)
 
void setConnection (BowlerAbstractConnection connection)
 
BowlerAbstractConnection getConnection ()
 
void setAddress (MACAddress address)
 
MACAddress getAddress ()
 
BowlerDatagram send (BowlerAbstractCommand command) throws NoConnectionAvailableException, InvalidResponseException
 
BowlerDatagram send (BowlerAbstractCommand command, int retry) throws NoConnectionAvailableException, InvalidResponseException
 
Object[] send (String namespace, BowlerMethod method, String rpcString, Object[] arguments, int retry) throws DeviceConnectionException
 
Object[] send (String namespace, BowlerMethod method, String rpcString, Object[] arguments) throws DeviceConnectionException
 
boolean ping ()
 
boolean ping (boolean switchParser)
 
ArrayList< ByteListgetRevisions ()
 
boolean hasNamespace (String string)
 
void startHeartBeat ()
 
void startHeartBeat (long msHeartBeatTime)
 
void stopHeartBeat ()
 
void setThreadedUpstreamPackets (boolean up)
 
ArrayList< RpcEncapsulationgetRpcList (String namespace)
 
void loadRpcList ()
 
void onAllResponse (BowlerDatagram data)
 
boolean isKeepAlive ()
 
void setKeepAlive (boolean keepAlive)
 
long getLastPacketTime ()
 
void setLastPacketTime (long lastPacketTime)
 
String getScriptingName ()
 
void setScriptingName (String scriptingName)
 
ArrayList< IDeviceConnectionEventListenergetDisconnectListeners ()
 

Private Member Functions

String getLine ()
 

Private Attributes

NRSerialPort serial
 
DataInputStream ins =null
 
DataOutputStream outs =null
 
int timeoutMs = 1000
 
GCodeDeviceConfiguration config = new GCodeDeviceConfiguration()
 
HashMap< LinkConfiguration, IGCodeChannellinks = new HashMap<LinkConfiguration,IGCodeChannel>()
 
AbstractLink heater =null
 
AbstractLink bed =null
 

Static Private Attributes

static final String tool = LinkType.GCODE_STEPPER_TOOL.getName()
 
static final String rot = LinkType.GCODE_STEPPER_ROTORY.getName()
 
static final String pris = LinkType.GCODE_STEPPER_PRISMATIC.getName()
 

Additional Inherited Members

- Protected Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractDevice
void fireDisconnectEvent ()
 
void fireConnectEvent ()
 

Detailed Description

Definition at line 25 of file GcodeDevice.java.

Constructor & Destructor Documentation

◆ GcodeDevice()

com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.GcodeDevice ( NRSerialPort  serial)

Member Function Documentation

◆ connectDeviceImp()

boolean com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.connectDeviceImp ( )

◆ disconnectDeviceImp()

void com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.disconnectDeviceImp ( )

◆ flush()

void com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.flush ( double  seconds)

◆ getConfiguration()

GCodeDeviceConfiguration com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.getConfiguration ( )

Return the configuration of the gcode device.

Returns

Implements com.neuronrobotics.sdk.addons.kinematics.gcodebridge.IGcodeExecuter.

Definition at line 237 of file GcodeDevice.java.

References com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.config.

◆ getHeater()

AbstractLink com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.getHeater ( LinkConfiguration  axis)

◆ getLine()

String com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.getLine ( )
private

◆ getLink()

AbstractLink com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.getLink ( LinkConfiguration  axis)

◆ getNamespacesImp()

ArrayList<String> com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.getNamespacesImp ( )

Gets the namespaces imp.

Returns
the namespaces imp

Reimplemented from com.neuronrobotics.sdk.common.NonBowlerDevice.

Definition at line 172 of file GcodeDevice.java.

◆ getTimeoutMs()

int com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.getTimeoutMs ( )

◆ loadCurrent()

void com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.loadCurrent ( )

◆ runFile()

void com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.runFile ( File  gcode)

Run all the lines in a file

Parameters
gcode

Implements com.neuronrobotics.sdk.addons.kinematics.gcodebridge.IGcodeExecuter.

Definition at line 223 of file GcodeDevice.java.

◆ runLine()

String com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.runLine ( String  line)

◆ setTimeoutMs()

void com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.setTimeoutMs ( int  timeoutMs)

Member Data Documentation

◆ bed

AbstractLink com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.bed =null
private

◆ config

GCodeDeviceConfiguration com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.config = new GCodeDeviceConfiguration()
private

◆ heater

AbstractLink com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.heater =null
private

◆ ins

DataInputStream com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.ins =null
private

◆ links

HashMap<LinkConfiguration,IGCodeChannel> com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.links = new HashMap<LinkConfiguration,IGCodeChannel>()
private

◆ outs

DataOutputStream com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.outs =null
private

◆ pris

final String com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.pris = LinkType.GCODE_STEPPER_PRISMATIC.getName()
staticprivate

◆ rot

final String com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.rot = LinkType.GCODE_STEPPER_ROTORY.getName()
staticprivate

◆ serial

NRSerialPort com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.serial
private

◆ timeoutMs

int com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.timeoutMs = 1000
private

◆ tool

final String com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.tool = LinkType.GCODE_STEPPER_TOOL.getName()
staticprivate

The documentation for this class was generated from the following file: