org.kahina.tralesld
Class TraleSLDInstance

java.lang.Object
  extended by org.kahina.core.KahinaInstance<S,G,B>
      extended by org.kahina.lp.LogicProgrammingInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>
          extended by org.kahina.tralesld.TraleSLDInstance
All Implemented Interfaces:
KahinaListener

public class TraleSLDInstance
extends LogicProgrammingInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>


Field Summary
 Action COMPILE_ACTION
           
 Action PARSE_ACTION
           
 Action RESTART_ACTION
           
 
Fields inherited from class org.kahina.core.KahinaInstance
bridge, control, gui, guiControl, state, steps
 
Constructor Summary
TraleSLDInstance()
           
TraleSLDInstance(boolean withWorkbench)
           
 
Method Summary
protected  void compile(String absolutePath)
           
protected  TraleSLDBridge createBridge()
           
protected  TraleSLDGUI createGUI()
           
protected  TraleSLDState createState()
           
protected  void createTreeBehavior()
           
protected  void fillViewRegistry()
          overwrite this to register views for user-defined datatypes MUST register views for all data types use super.fillViewRegistry() in implementations to register most basic views
 String getCommand()
           
 LogicProgrammingProfiler getProfiler()
           
static void main(String[] args)
           
protected  void parse(List<String> words)
           
 void processEvent(KahinaEvent e)
           
 TraleSLDBridge startNewSession()
           
 
Methods inherited from class org.kahina.core.KahinaInstance
dispatchBackgroundEvent, dispatchEvent, dispatchGUIEvent, getApplicationName, getBridge, getControl, getGuiControl, getState, initializeNewSession, start, startNewSessionWithoutBridge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPILE_ACTION

public final Action COMPILE_ACTION

PARSE_ACTION

public final Action PARSE_ACTION

RESTART_ACTION

public final Action RESTART_ACTION
Constructor Detail

TraleSLDInstance

public TraleSLDInstance()

TraleSLDInstance

public TraleSLDInstance(boolean withWorkbench)
Method Detail

startNewSession

public TraleSLDBridge startNewSession()
Overrides:
startNewSession in class KahinaInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>

getCommand

public String getCommand()

createTreeBehavior

protected void createTreeBehavior()
Overrides:
createTreeBehavior in class LogicProgrammingInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>

createBridge

protected TraleSLDBridge createBridge()
Specified by:
createBridge in class KahinaInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>

createGUI

protected TraleSLDGUI createGUI()
Specified by:
createGUI in class KahinaInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>

createState

protected TraleSLDState createState()
Specified by:
createState in class KahinaInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>

fillViewRegistry

protected void fillViewRegistry()
Description copied from class: KahinaInstance
overwrite this to register views for user-defined datatypes MUST register views for all data types use super.fillViewRegistry() in implementations to register most basic views

Overrides:
fillViewRegistry in class KahinaInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>

processEvent

public void processEvent(KahinaEvent e)
Specified by:
processEvent in interface KahinaListener
Overrides:
processEvent in class KahinaInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>

compile

protected void compile(String absolutePath)

parse

protected void parse(List<String> words)

getProfiler

public LogicProgrammingProfiler getProfiler()
Specified by:
getProfiler in class LogicProgrammingInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>

main

public static void main(String[] args)