edu.bonn.xulu.plugin.appl
Class DataScriptInterpreter_Basic.Command_CreateModel

java.lang.Object
  extended by edu.bonn.xulu.plugin.appl.DataScriptInterpreter_Basic.Command_CreateModel
All Implemented Interfaces:
AbstractCommandInterpreter.Command
Enclosing class:
DataScriptInterpreter_Basic

protected class DataScriptInterpreter_Basic.Command_CreateModel
extends Object
implements AbstractCommandInterpreter.Command

Erzeugt ein neues Modell

Version:
1.0
Author:
Dominik Appl - University of Bonn/Germany

Constructor Summary
DataScriptInterpreter_Basic.Command_CreateModel(String modelClass, String modelName)
          Erzeugt einen neuen Befehl.
 
Method Summary
 void check()
          Prueft, ob alle Parameter korrekt gesetzt sind.
 void execute(XuluModellingPlatform appl)
          Fuehrt den Befehl aus.
 String getDescription()
          Liefert eine Beschreibung des Kommandos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataScriptInterpreter_Basic.Command_CreateModel

public DataScriptInterpreter_Basic.Command_CreateModel(String modelClass,
                                                       String modelName)
Erzeugt einen neuen Befehl.

Parameters:
modelClass - Klasse des zu ladenen Modells
modelName - Name fuer die neue Modell-Instanz
Method Detail

getDescription

public String getDescription()
Liefert eine Beschreibung des Kommandos.

Specified by:
getDescription in interface AbstractCommandInterpreter.Command

execute

public void execute(XuluModellingPlatform appl)
             throws Exception
Fuehrt den Befehl aus.

Specified by:
execute in interface AbstractCommandInterpreter.Command
Parameters:
appl - Applikation unter der der Befehl ausgefuehrt wird
Throws:
Exception - wenn ein Fehler bei der Ausfuehrung aufritt

check

public void check()
Prueft, ob alle Parameter korrekt gesetzt sind. Ggf. wird eine Exception geworfen.

Specified by:
check in interface AbstractCommandInterpreter.Command