dk.deepthought.sidious.gui
Class SidiousOutput

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

public class SidiousOutput
extends java.lang.Object

Class works as a provider of messages from within the planner.

Author:
Deepthought

Field Summary
private static SidiousOutput INSTANCE
          The singleton instance of this.
private static java.util.List<SidiousController> listeners
          List of listeners.
 
Constructor Summary
private SidiousOutput()
          Private constructor.
 
Method Summary
 void addFinishedPlan(Plan plan)
          Adds a finished plan to this.
 void addVertex(Vertex vertex)
          Adds a vertex to this.
static SidiousOutput getInstance()
          Gets the singleton instance of this.
 void register(SidiousController controller)
          Registers the specified controller as listener of this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static final SidiousOutput INSTANCE
The singleton instance of this.


listeners

private static java.util.List<SidiousController> listeners
List of listeners.

Constructor Detail

SidiousOutput

private SidiousOutput()
Private constructor.

Method Detail

getInstance

public static SidiousOutput getInstance()
Gets the singleton instance of this.

Returns:
the singleton instance.

addVertex

public void addVertex(Vertex vertex)
Adds a vertex to this.

Is called from the jAStar method in the AStarAlgorithm class.

Parameters:
vertex -
See Also:
AStarAlgorithm

register

public void register(SidiousController controller)
Registers the specified controller as listener of this.

Parameters:
controller - the controller to register

addFinishedPlan

public void addFinishedPlan(Plan plan)
Adds a finished plan to this. All listeners are notified.

Parameters:
plan - the plan to add


Copyright © Deepthought Development - All Rights Reserved.