EASE.Sensing.Engine
Class Engine

java.lang.Object
  |
  +--EASE.Sensing.Engine.Engine

public class Engine
extends java.lang.Object

Top level of Sensing Engine

Client objects requiring the use of the sensing engine can safely create Engine objects at will. Use of a singleton pattern ensures that only one ActualEngine exsists.


Field Summary
private static ActualEngine actual
           
private static Debugger debugger
           
 
Constructor Summary
Engine()
          Constructor for objects wanting access to the engines information
Engine(Interface simulatorInt)
          This constructor should be used only once.
 
Method Summary
 Calculation getCalculation(CellReference cr)
          Gets the requested calculation opening new files if necessary.
 Cell getCell(CellReference name)
          Get a cell for some cell reference
 Node getNode(CellReference name)
          Get the Node for some primitive Cell
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

debugger

private static Debugger debugger

actual

private static ActualEngine actual
Constructor Detail

Engine

public Engine(Interface simulatorInt)
This constructor should be used only once. At the top level a copy of the interface is passed to the engine. Any objects wanting access to to the engine should use the other constructor. Idea enforced by writing to debugger if the rules are broken . . Good SE!!


Engine

public Engine()
Constructor for objects wanting access to the engines information
Method Detail

getCalculation

public Calculation getCalculation(CellReference cr)
Gets the requested calculation opening new files if necessary.


getNode

public Node getNode(CellReference name)
Get the Node for some primitive Cell


getCell

public Cell getCell(CellReference name)
Get a cell for some cell reference