Package de.saar.chorus.ubench
Class Ubench
java.lang.Object
de.saar.chorus.ubench.Ubench
The main class of Ubench.
This implements the "singleton pattern", so this class
provides one (and only one) instance of Ubench.
- Author:
- Alexander Koller, Michaela Regneri
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddJDomGraphTab(String label, DomGraph graph, NodeLabels labels) Allows to set up a new Tab by submitting theDomGraphto display and aNodeLabelsobject along with the graph's name.booleanaddSolvedFormTab(String label, DomGraph sf, SolvedFormIterator sfi, long no, long all, DomGraph graph, NodeLabels labels, String graphname, boolean atEnd) Allows to set up a new Tab by submitting theDomGraphin solved form to display and aNodeLabelsobject along with the graph's name and some information about the source graph.voidClosing all tabs.voidstatic UbenchReturns the (only) instance of theUbenchclass.de.saar.chorus.ubench.CommandListenerbooleanstatic voidStarting Ubench, optionally with files to open on command linevoidquit()Closing Ubench.voidAligning the slider with the currently shown graph.voidsetLastPath(File lastPath) voidsetPreferenceDialogVisible(boolean visible) voidvoidShowing the bar for the solving process.
-
Field Details
-
reduceAutomatically
public boolean reduceAutomatically
-
-
Method Details
-
resetSlider
public void resetSlider()Aligning the slider with the currently shown graph. (if there is one). -
setPreferenceDialogVisible
public void setPreferenceDialogVisible(boolean visible) -
showProgressBar
public void showProgressBar()Showing the bar for the solving process. -
getWindow
- Returns:
- the main window itself
-
closeAllTabs
public void closeAllTabs()Closing all tabs. -
quit
public void quit()Closing Ubench. -
addJDomGraphTab
Allows to set up a new Tab by submitting theDomGraphto display and aNodeLabelsobject along with the graph's name.- Parameters:
label- name of the graph (resp. the tab)graph- theDomGraphto displaylabels- the storage for the node labels- Returns:
- true if the
DomGraphwas successfully translated into aJDomGraph
-
addSolvedFormTab
public boolean addSolvedFormTab(String label, DomGraph sf, SolvedFormIterator sfi, long no, long all, DomGraph graph, NodeLabels labels, String graphname, boolean atEnd) Allows to set up a new Tab by submitting theDomGraphin solved form to display and aNodeLabelsobject along with the graph's name and some information about the source graph. Note: This is public because theChartViewerListeneruses it.- Parameters:
label- the label of the tabsf- the graph in solved formsfi- the solved form iterator which has produced the sfno- the index of the solved formsall- the number of solved forms the source graph hasgraph- the source graphlabels- the labels of the graph (and the solved form)graphname- the name of the solved formatEnd- if set to true, this tab will be the last tab. If set to false, it will succeed the visible tab immediately.- Returns:
-
main
Starting Ubench, optionally with files to open on command line- Parameters:
args- command line arguments
-
getListener
public de.saar.chorus.ubench.CommandListener getListener()- Returns:
- Returns the listener.
-
getInstance
Returns the (only) instance of theUbenchclass. Creates a newUbenchobject if there was none created yet, returns the already created instance otherwise.- Returns:
- the single
Ubenchinstance
-
getRelativeNormalFormsComputer
- Returns:
- Returns the eqs.
-
setRelativeNormalFormsComputer
- Parameters:
eqs- The eqs to set.
-
getEqsname
- Returns:
- Returns the eqsname.
-
isRelativeNormalFormsComputerLoaded
public boolean isRelativeNormalFormsComputerLoaded() -
getLastPath
- Returns:
- Returns the lastPath.
-
setLastPath
- Parameters:
lastPath- The lastPath to set.
-
displayAboutDialog
public void displayAboutDialog() -
getVisibleDomGraph
-
getVisibleNodeLabels
-