/* * Decompiled with CFR 0.152. * * Could not load the following classes: * javax.baja.sys.Context */ package com.tridium.program; import com.tridium.program.BRobotResult; import java.io.PrintWriter; import java.io.StringWriter; import javax.baja.sys.Context; public abstract class Robot { public final PrintWriter log; public Context context; private StringWriter logOut = new StringWriter(); public abstract void run() throws Exception; public BRobotResult toResult() { return new BRobotResult(this.logToString()); } public String logToString() { this.log.flush(); return this.logOut.toString(); } public Robot() { this.log = new PrintWriter(this.logOut); } }