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 voidlogRun()Logs the current simulator run to the database.voidonArrival()Visualises the arrival of aMaterialinto the system.voidonTransfer(java.lang.String destination)Visualises the transfer of aMaterialin the system.voidresetEngine()Resets theEnginefor a new simulator run.voidresetMetricsCollectors()Resets all metrics collectors.voidsetCanProceed(boolean canProceed)Allows the engine to run a new CPU cycle in step-by-step mode.voidsetPause(boolean isPause)Pauses execution and enters step-by-step mode.voidsetSpeed(double value)Sets the engine speed multiplier.voidsetStationViewerController(StationViewerController stationViewerController)voidstartEngine()Starts a new simulation run.voidstopEngine()Ends the current simulation run.voidtakeStep()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 theEnginefor 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 aMaterialinto the system. -
onTransfer
public void onTransfer(java.lang.String destination)Visualises the transfer of aMaterialin the system.- Parameters:
destination-String
-