public class MUCInstance extends KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
Modifier and Type | Field and Description |
---|---|
static boolean |
CFG_FILTER |
javax.swing.Action |
LOAD_FILE_ACTION |
javax.swing.Action |
LOAD_PATH_ACTION |
javax.swing.Action |
QUIT_ACTION |
javax.swing.Action |
US_DIMACS_EXPORT_ACTION |
javax.swing.Action |
US_EXPORT_VAR_OCCURRENCES |
javax.swing.Action |
US_SYMBOLIC_DIMACS_EXPORT_ACTION |
bridge, defaultPerspectives, defaultProjects, gui, instanceControl, logger, project, recentPerspectives, recentProjects, sessionControl, state, steps, VERBOSE
Constructor and Description |
---|
MUCInstance(MetaLearningMode metaLearningMode) |
MUCInstance(MetaLearningMode metaLearningMode,
CnfSatInstance satInstance,
MUCStatistics stat,
MiniSATFiles files) |
Modifier and Type | Method and Description |
---|---|
void |
addFirstUC() |
protected MUCBridge |
createBridge() |
protected MUCGUI |
createGUI() |
protected KahinaProject |
createNewProject() |
protected MUCState |
createState() |
protected void |
createTreeBehavior() |
void |
discardCurrentState() |
void |
generateFirstUC() |
java.lang.String |
getApplicationName() |
MetaLearningMode |
getMetaLearningMode() |
java.util.List<java.lang.Class<? extends ReductionHeuristic>> |
getReductionHeuristics() |
MUCReductionManager |
getReductionManager() |
CnfSatInstance |
getSatInstance() |
protected void |
loadDefaultHeuristics() |
protected void |
loadHeuristicsFile(java.lang.String fileName) |
KahinaProject |
loadProject(java.io.InputStream stream) |
void |
loadSATFile(java.io.File satFile) |
static void |
main(java.lang.String[] args) |
protected void |
preparePerspectiveLists() |
protected void |
prepareProjectLists() |
void |
processEvent(KahinaEvent e) |
protected void |
processNewProject() |
void |
start(java.lang.String[] args)
Writing a main method for a Kahina-based debugging environment is simple:
just create an instance of your KahinaInstance subclass and pass its
start method the arguments.
|
MUCBridge |
startNewSession() |
void |
startNewSessionWithoutBridge() |
deregisterInstanceListener, deregisterSessionListener, dispatchEvent, dispatchInstanceEvent, dispatchSessionEvent, fillViewRegistry, getBridge, getGUI, getLogger, getProject, getProjectStatus, getState, initializeNewSession, loadPerspective, loadProject, newProject, processProjectEvent, registerInstanceListener, registerRecentPerspective, registerRecentProject, registerSessionListener, saveProjectAs, setProjectStatus
public static final boolean CFG_FILTER
public final javax.swing.Action LOAD_FILE_ACTION
public final javax.swing.Action LOAD_PATH_ACTION
public final javax.swing.Action US_DIMACS_EXPORT_ACTION
public final javax.swing.Action US_SYMBOLIC_DIMACS_EXPORT_ACTION
public final javax.swing.Action US_EXPORT_VAR_OCCURRENCES
public final javax.swing.Action QUIT_ACTION
public MUCInstance(MetaLearningMode metaLearningMode)
public MUCInstance(MetaLearningMode metaLearningMode, CnfSatInstance satInstance, MUCStatistics stat, MiniSATFiles files)
public void startNewSessionWithoutBridge()
startNewSessionWithoutBridge
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
public MUCBridge startNewSession()
startNewSession
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
protected MUCState createState()
createState
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
protected MUCBridge createBridge()
createBridge
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
protected MUCGUI createGUI()
createGUI
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
public java.lang.String getApplicationName()
getApplicationName
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
protected void processNewProject()
processNewProject
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
public KahinaProject loadProject(java.io.InputStream stream)
protected void createTreeBehavior()
createTreeBehavior
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
public CnfSatInstance getSatInstance()
public void discardCurrentState()
public void loadSATFile(java.io.File satFile)
public void addFirstUC()
public void generateFirstUC()
public void processEvent(KahinaEvent e)
processEvent
in interface KahinaListener
processEvent
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
public void start(java.lang.String[] args)
start
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
args
- public static void main(java.lang.String[] args)
protected KahinaProject createNewProject()
createNewProject
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
protected void prepareProjectLists()
prepareProjectLists
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
protected void preparePerspectiveLists()
preparePerspectiveLists
in class KahinaInstance<MUCState,MUCGUI,MUCBridge,KahinaProject>
protected void loadHeuristicsFile(java.lang.String fileName)
protected void loadDefaultHeuristics()
public MetaLearningMode getMetaLearningMode()
public MUCReductionManager getReductionManager()
public java.util.List<java.lang.Class<? extends ReductionHeuristic>> getReductionHeuristics()