Search in sources :

Example 1 with Stats

use of com.willwinder.universalgcodesender.gcode.processors.Stats in project Universal-G-Code-Sender by winder.

the class GcodeParser method reset.

/**
 * Resets the current state.
 */
public void reset() {
    this.statsProcessor = new Stats();
    this.state.currentPoint = new Position();
    this.state.commandNumber = -1;
}
Also used : Position(com.willwinder.universalgcodesender.model.Position) Stats(com.willwinder.universalgcodesender.gcode.processors.Stats)

Example 2 with Stats

use of com.willwinder.universalgcodesender.gcode.processors.Stats in project Universal-G-Code-Sender by winder.

the class GcodeParser method resetCommandProcessors.

/**
 * Clear out any processors that have been added.
 */
@Override
public void resetCommandProcessors() {
    this.processors.clear();
    this.statsProcessor = new Stats();
}
Also used : Stats(com.willwinder.universalgcodesender.gcode.processors.Stats)

Aggregations

Stats (com.willwinder.universalgcodesender.gcode.processors.Stats)2 Position (com.willwinder.universalgcodesender.model.Position)1