ar.edu.unr.fceia.bottallo
Class Core

java.lang.Object
  extended by ar.edu.unr.fceia.bottallo.Core

public class Core
extends java.lang.Object

Basic construction of Statecharts systems, send events to systems, execute scripts


Field Summary
static int NEGATIVE
           
static int SYNTAX
           
static int UNSET
           
static int UNSUPPORTED
           
 
Constructor Summary
Core()
           
 
Method Summary
protected  void drawSystem()
          Draw the system, generate a .odg file with de statusX of the system Run a script to make the .odg file
protected  java.lang.String getEventsInSystem()
          Return the system's events as a string with events separated with colons (:)
See buttonEditorActionPerformed (Statecharts)
 void initSystem()
          Intialization system stage
protected  void removeAuxiliarFiles()
          Remove auxiliar files from temporary directory, run a script.
protected  void sendCommonEvent(java.lang.String e)
          Send a common to the algorithm
protected  void sendTimeEvent(int t)
          Send a time-event to the algorithm
protected  void setSystem(java.lang.String path2system)
          Set the system, run a script to get the XML file inside of the .odg file
protected  void unsetSystem()
          Destroy the actual system to eventually create a new one
See buttonExaminarActionPerformed (Statecharts)
protected  void validateSystem()
          Runs a number of functions to validate the input system
See buttonInicioActionPerformed (Statecharts)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSUPPORTED

public static int UNSUPPORTED

UNSET

public static int UNSET

NEGATIVE

public static int NEGATIVE

SYNTAX

public static int SYNTAX
Constructor Detail

Core

public Core()
Method Detail

unsetSystem

protected void unsetSystem()
Destroy the actual system to eventually create a new one
See buttonExaminarActionPerformed (Statecharts)


setSystem

protected void setSystem(java.lang.String path2system)
Set the system, run a script to get the XML file inside of the .odg file

Parameters:
path2system - A String with the absolute path of the .odg file (system file)
See buttonExaminarActionPerformed (Statecharts)

drawSystem

protected void drawSystem()
Draw the system, generate a .odg file with de statusX of the system Run a script to make the .odg file


removeAuxiliarFiles

protected void removeAuxiliarFiles()
Remove auxiliar files from temporary directory, run a script.


getEventsInSystem

protected java.lang.String getEventsInSystem()
Return the system's events as a string with events separated with colons (:)
See buttonEditorActionPerformed (Statecharts)


validateSystem

protected void validateSystem()
Runs a number of functions to validate the input system
See buttonInicioActionPerformed (Statecharts)


initSystem

public void initSystem()
Intialization system stage


sendTimeEvent

protected void sendTimeEvent(int t)
Send a time-event to the algorithm


sendCommonEvent

protected void sendCommonEvent(java.lang.String e)
Send a common to the algorithm