Package net.officefloor
Class OfficeFloorRunner
java.lang.Object
net.officefloor.OfficeFloorRunner
- Direct Known Subclasses:
OfficeFloorHttpFunctionMain
Runs the
OfficeFloor.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OfficeFloorcompile(OfficeFloorCompiler compiler) Undertakes compiling theOfficeFloor.protected OfficeFloorCompilerCreates theOfficeFloorCompiler.protected voidopen(OfficeFloor officeFloor) Undertakes opening theOfficeFloor.Compiles and opens theOfficeFloor.voidrunAndBlockToClose(PrintStream out, PrintStream err, String... args) Compiles and opens theOfficeFloorand blocks untilOfficeFlooris closed.
-
Constructor Details
-
OfficeFloorRunner
public OfficeFloorRunner()
-
-
Method Details
-
runAndBlockToClose
Compiles and opens theOfficeFloorand blocks untilOfficeFlooris closed.- Parameters:
out- Std out.err- Std err.args- Command line arguments.- Throws:
Exception- If fails to compile and open.
-
run
Compiles and opens theOfficeFloor.- Parameters:
args- Command line arguments.- Returns:
OfficeFloor.- Throws:
Exception- If fails to compile and open.
-
createCompiler
Creates theOfficeFloorCompiler.- Returns:
- New
OfficeFloorCompiler. - Throws:
Exception- If fails to create.
-
compile
Undertakes compiling theOfficeFloor.- Parameters:
compiler-OfficeFloorCompiler.- Returns:
OfficeFloor.- Throws:
Exception- If fails compiling.
-
open
Undertakes opening theOfficeFloor.- Parameters:
officeFloor-OfficeFloor.- Throws:
Exception- If fails opening.
-