BowlerKernel
CodeHandler.java
Go to the documentation of this file.
1 package com.neuronrobotics.replicator.driver.interpreter;
2 
3 import java.util.List;
4 
5 // TODO: Auto-generated Javadoc
12 public abstract class CodeHandler {
13 
23  public abstract void execute(GCodeLineData prev, GCodeLineData line) throws Exception;
24 
26  List<CodeHandler> subHandlers;
27 
33  public void setSubHandlers(List<CodeHandler> subHandlers) {
34  this.subHandlers=subHandlers;
35  }
36 
44  public void callSubMethods(GCodeLineData prev, GCodeLineData line) throws Exception {
45  for(CodeHandler handler: subHandlers)
46  handler.execute(prev, line);
47  }
48 }
49 
void callSubMethods(GCodeLineData prev, GCodeLineData line)
void setSubHandlers(List< CodeHandler > subHandlers)
abstract void execute(GCodeLineData prev, GCodeLineData line)