Package com.assemblyrobot.ui.controllers
Class OverviewController
java.lang.Object
com.assemblyrobot.ui.controllers.OverviewController
public class OverviewController
extends java.lang.Object
Controller class for the
Overview
.-
Constructor Summary
Constructors Constructor Description OverviewController()
-
Method Summary
Modifier and Type Method Description void
logRun()
Logs the current simulator run to the database.void
onArrival()
Visualises the arrival of aMaterial
into the system.void
onTransfer(java.lang.String destination)
Visualises the transfer of aMaterial
in the system.void
resetEngine()
Resets theEngine
for a new simulator run.void
resetMetricsCollectors()
Resets all metrics collectors.void
setCanProceed(boolean canProceed)
Allows the engine to run a new CPU cycle in step-by-step mode.void
setPause(boolean isPause)
Pauses execution and enters step-by-step mode.void
setSpeed(double value)
Sets the engine speed multiplier.void
setStationViewerController(StationViewerController stationViewerController)
void
startEngine()
Starts a new simulation run.void
stopEngine()
Ends the current simulation run.void
takeStep()
Moves the engine forward by one CPU cycle in step-by-step mode.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OverviewController
public OverviewController()
-
-
Method Details
-
setStationViewerController
-
startEngine
public void startEngine()Starts a new simulation run. -
stopEngine
public void stopEngine()Ends the current simulation run. -
resetEngine
public void resetEngine()Resets theEngine
for a new simulator run. -
setPause
public void setPause(boolean isPause)Pauses execution and enters step-by-step mode.- Parameters:
isPause
- Whether to set the engine to step-by-step mode.
-
setCanProceed
public void setCanProceed(boolean canProceed)Allows the engine to run a new CPU cycle in step-by-step mode.- Parameters:
canProceed
- Whether to allow proceeding or not.
-
takeStep
public void takeStep()Moves the engine forward by one CPU cycle in step-by-step mode. -
setSpeed
public void setSpeed(double value)Sets the engine speed multiplier.- Parameters:
value
- The speed multiplier to adjust sleep time by.
-
logRun
public void logRun()Logs the current simulator run to the database. -
resetMetricsCollectors
public void resetMetricsCollectors()Resets all metrics collectors. -
onArrival
public void onArrival()Visualises the arrival of aMaterial
into the system. -
onTransfer
public void onTransfer(java.lang.String destination)Visualises the transfer of aMaterial
in the system.- Parameters:
destination
-String
-