org.kahina.tralesld
Class TraleSLDInstance
java.lang.Object
org.kahina.core.KahinaInstance<S,G,B>
org.kahina.lp.LogicProgrammingInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>
org.kahina.tralesld.TraleSLDInstance
- All Implemented Interfaces:
- KahinaListener
public class TraleSLDInstance
- extends LogicProgrammingInstance<TraleSLDState,TraleSLDGUI,TraleSLDBridge>
| 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 |
COMPILE_ACTION
public final Action COMPILE_ACTION
PARSE_ACTION
public final Action PARSE_ACTION
RESTART_ACTION
public final Action RESTART_ACTION
TraleSLDInstance
public TraleSLDInstance()
TraleSLDInstance
public TraleSLDInstance(boolean withWorkbench)
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)