de.unikoblenz.comicsii.ui.simulation.ctrl
Class SimulationSessionFactory

java.lang.Object
  extended by de.unikoblenz.comicsii.ui.simulation.ctrl.SimulationSessionFactory

public class SimulationSessionFactory
extends java.lang.Object

Author:
cbu Erzeugt eine SimulationSession, die zur Bearbeitung einer Simulation benötigt wird

Method Summary
 void addSimulationSessionListener(SimulationSessionListener aListener)
           
 void closeCurrentSession()
          Schließt die geöffnete Session
 void createNewProject(ProjectDescriptor aDescr)
           
 boolean existProjectName(java.lang.String aName)
           
 org.eclipse.core.resources.IProject[] getAllProjects()
          Liefert alle vorhandenen Projekte, die im Workspace vorhanden sind
 SimulationSession getCurrentSession()
          Liefert die schon geöffnete Session
static SimulationSessionFactory getFactory()
           
 boolean isSessionOpen()
          Prüft ob es eine geöffnete Session gibt
 SimulationSession openSession(java.lang.String aName)
           
 void removeSimulationSessionListener(SimulationSessionListener aListener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static SimulationSessionFactory getFactory()

openSession

public SimulationSession openSession(java.lang.String aName)
                              throws SimulationException
Parameters:
aName: - != null Öffnet eine SimulationSession
Returns:
SimulationSession: != null
Throws:
SimulationException

getCurrentSession

public SimulationSession getCurrentSession()
Liefert die schon geöffnete Session

Returns:
SimulationSession: -> null

closeCurrentSession

public void closeCurrentSession()
Schließt die geöffnete Session


isSessionOpen

public boolean isSessionOpen()
Prüft ob es eine geöffnete Session gibt

Returns:
boolean

getAllProjects

public org.eclipse.core.resources.IProject[] getAllProjects()
Liefert alle vorhandenen Projekte, die im Workspace vorhanden sind

Returns:
Array of IProjects: != null

existProjectName

public boolean existProjectName(java.lang.String aName)
Parameters:
aName: - != null Prüft ob das gesuchte Projekt im Workspace vorhande ist
Returns:
boolean

addSimulationSessionListener

public void addSimulationSessionListener(SimulationSessionListener aListener)
Parameters:
aListener: - != null Fügt einen SimualtionSessionListener hinzu

removeSimulationSessionListener

public void removeSimulationSessionListener(SimulationSessionListener aListener)
Parameters:
aListener: - != null Entfernt einen SimulationSessionListener

createNewProject

public void createNewProject(ProjectDescriptor aDescr)
                      throws SimulationException
Parameters:
aDescr: - != null Erzeugt ein neues Projekt
Throws:
SimulationException