main
Class GeneNet

java.lang.Object
  extended bymain.GeneNet
All Implemented Interfaces:
GuiInterface, java.lang.Runnable

public class GeneNet
extends java.lang.Object
implements GuiInterface, java.lang.Runnable

GeneNet.java The MainClass.


Field Summary
 main.GeneNet.SymAction actor
           
 ModelIterator ItsIterator
          The iterator if any for this model
 Model model
           
static GeneNet TheGeneNet
           
static MainGui TheMainGui
          The main Graphical User Interface
static Model TheModel
           
 
Fields inherited from interface genegui.GuiInterface
ADDED, CHANGED, CLOSE, EXIT, IS_ITERATOR, IS_MODEL, ITERATOR_STARTED, ITERATOR_STOPPED, MODEL_STARTED, MODEL_STOPPED, NEW, OPEN, PARAMETER_ADDED, PARAMETER_CHANGED, PARAMETER_REMOVED, PARAMETER_SET_CHANGED, REMOVED, RESET_ITERATOR, RESET_MODEL, RUN_ITERATOR, RUN_MODEL, SAVE, STEP_ITERATOR, STEP_MODEL, STOP_ITERATOR
 
Constructor Summary
GeneNet()
           
 
Method Summary
 void addNetworkListener(main.event.NetworkEventListener listener)
           
 void affectorTemplateChanged(int operation, AffectorTemplate affectorTemplate, GuiInterface source)
          Called when a change is made to the passed AffectorTemplate
static void close()
          Do a tidy shutdown of the program
 ModelIterator getIterator()
          Returns the ModelIterator.
 Model getModel()
          Returns the Model loaded in this GeneNet.
 Network getNetwork()
          Returns the Network for the Model loaded in this GeneNet.
 NetworkFile getNetworkFile()
           
 boolean isIteratorRunning()
           
 boolean isModelRunning()
           
static void main(java.lang.String[] args)
           
 boolean networkIO(int operation, java.io.File file)
          Method for invoking general network IO operations.
 void nodeTemplateChanged(int operation, NodeTemplate nodeTemplate, GuiInterface source)
          Called when a change is made to the passed NodeTemplate
 void parameterSetChanged(int operation, int parameterNumber, GuiInterface source)
          Called when a change is made to a parameter or the whole parameter set
 void removeNetworkListener(main.event.NetworkEventListener listener)
           
 void run()
           
 void runControl(int operation)
          Method for controling model/iterator runs.
 void runStatus(int operation)
          Method for reporting status of the model/iterator runs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ItsIterator

public ModelIterator ItsIterator
The iterator if any for this model


TheGeneNet

public static GeneNet TheGeneNet

TheMainGui

public static MainGui TheMainGui
The main Graphical User Interface


TheModel

public static Model TheModel

model

public Model model

actor

public main.GeneNet.SymAction actor
Constructor Detail

GeneNet

public GeneNet()
Method Detail

main

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

close

public static void close()
Do a tidy shutdown of the program


getIterator

public ModelIterator getIterator()
Returns the ModelIterator.


getModel

public Model getModel()
Returns the Model loaded in this GeneNet.


getNetwork

public Network getNetwork()
Returns the Network for the Model loaded in this GeneNet.


getNetworkFile

public NetworkFile getNetworkFile()

isIteratorRunning

public boolean isIteratorRunning()

isModelRunning

public boolean isModelRunning()

run

public void run()
Specified by:
run in interface java.lang.Runnable

addNetworkListener

public void addNetworkListener(main.event.NetworkEventListener listener)

removeNetworkListener

public void removeNetworkListener(main.event.NetworkEventListener listener)

affectorTemplateChanged

public void affectorTemplateChanged(int operation,
                                    AffectorTemplate affectorTemplate,
                                    GuiInterface source)
Called when a change is made to the passed AffectorTemplate

Specified by:
affectorTemplateChanged in interface GuiInterface

networkIO

public boolean networkIO(int operation,
                         java.io.File file)
Method for invoking general network IO operations.

Specified by:
networkIO in interface GuiInterface

nodeTemplateChanged

public void nodeTemplateChanged(int operation,
                                NodeTemplate nodeTemplate,
                                GuiInterface source)
Called when a change is made to the passed NodeTemplate

Specified by:
nodeTemplateChanged in interface GuiInterface

parameterSetChanged

public void parameterSetChanged(int operation,
                                int parameterNumber,
                                GuiInterface source)
Called when a change is made to a parameter or the whole parameter set

Specified by:
parameterSetChanged in interface GuiInterface

runControl

public void runControl(int operation)
Method for controling model/iterator runs.

Specified by:
runControl in interface GuiInterface

runStatus

public void runStatus(int operation)
Method for reporting status of the model/iterator runs

Specified by:
runStatus in interface GuiInterface