dk.deepthought.sidious.gui
Class SidiousController

java.lang.Object
  extended by dk.deepthought.sidious.gui.SidiousController

public class SidiousController
extends java.lang.Object

This class works as the controller for the model-view-controller hook into the planner.

Author:
Deepthought

Nested Class Summary
static class SidiousController.PLAN_MODE
          Enumeration to specify which plan to calculate.
 
Field Summary
private  Display display
          The displayed GUI.
private  Greenhouse requester
          The the current greenhouse to calculate for.
 
Constructor Summary
SidiousController(SidiousController.PLAN_MODE mode)
          Constructor.
 
Method Summary
private  void bigger()
          Calculate the bigger plan.
 void finished(Plan plan)
          Sets the newly generated plan.
static void main(java.lang.String[] args)
          The main method.
private  void small()
          Calculate the smaller plan.
 void start()
          Starts the calculations.
 void stop()
          Stop calculating.
 void vertex(Vertex vertex)
          Sets the newly created vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

display

private Display display
The displayed GUI.


requester

private Greenhouse requester
The the current greenhouse to calculate for.

Constructor Detail

SidiousController

public SidiousController(SidiousController.PLAN_MODE mode)
Constructor.

Parameters:
mode - the plan mode to calculate
Method Detail

bigger

private void bigger()
Calculate the bigger plan.


small

private void small()
Calculate the smaller plan.


start

public void start()
Starts the calculations.


vertex

public void vertex(Vertex vertex)
Sets the newly created vertex. Callback method from the model.

Parameters:
vertex - the vertex that have been created in the model.

finished

public void finished(Plan plan)
Sets the newly generated plan. Callback method from the model.

Parameters:
plan - the plan that have been generated in the model.

stop

public void stop()
Stop calculating.


main

public static void main(java.lang.String[] args)
The main method.



Copyright © Deepthought Development - All Rights Reserved.