BowlerKernel
Public Member Functions | List of all members
com.neuronrobotics.replicator.driver.interpreter.CodeHandler Class Referenceabstract
Inheritance diagram for com.neuronrobotics.replicator.driver.interpreter.CodeHandler:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.replicator.driver.interpreter.CodeHandler:
Collaboration graph
[legend]

Public Member Functions

abstract void execute (GCodeLineData prev, GCodeLineData line) throws Exception
 
void setSubHandlers (List< CodeHandler > subHandlers)
 
void callSubMethods (GCodeLineData prev, GCodeLineData line) throws Exception
 

Detailed Description

Encapsulates a handler for a particular G or M code.

Author
Jonathan D.K. Gibbons
Version
1

Definition at line 12 of file CodeHandler.java.

Member Function Documentation

◆ callSubMethods()

void com.neuronrobotics.replicator.driver.interpreter.CodeHandler.callSubMethods ( GCodeLineData  prev,
GCodeLineData  line 
) throws Exception

Call sub methods.

Parameters
prevthe prev
linethe line
Exceptions
Exceptionthe exception

Definition at line 44 of file CodeHandler.java.

◆ execute()

abstract void com.neuronrobotics.replicator.driver.interpreter.CodeHandler.execute ( GCodeLineData  prev,
GCodeLineData  line 
) throws Exception
abstract

Execute the action associated with this handler. this is permitted to modify the values stored in line; prev should be considered immutable.

Parameters
prevThe register values for the previous line of G code. Contains such things as the last set position, for interpolation schemes.
lineThe current set of register values for this line of G code.
Exceptions
Exceptionthe exception

Reimplemented in com.neuronrobotics.replicator.driver.interpreter.EmptyCodeHandler.

Referenced by com.neuronrobotics.replicator.driver.interpreter.GCodeInterpreter.executeLine().

◆ setSubHandlers()

void com.neuronrobotics.replicator.driver.interpreter.CodeHandler.setSubHandlers ( List< CodeHandler subHandlers)

Sets the sub handlers.

Parameters
subHandlersthe new sub handlers

Definition at line 33 of file CodeHandler.java.

Referenced by com.neuronrobotics.replicator.driver.interpreter.GCodeInterpreter.setGHandler(), and com.neuronrobotics.replicator.driver.interpreter.GCodeInterpreter.setMHandler().


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