org.semanticweb.HermiT.debugger.commands
Class AbstractCommand

java.lang.Object
  extended by org.semanticweb.HermiT.debugger.commands.AbstractCommand
All Implemented Interfaces:
ICommand
Direct Known Subclasses:
ActiveNodesCommand, BreakpointTimeCommand, ClearCommand, ContinueCommand, DerivationTreeCommand, DiffLabelsCommand, DummyCommand, ExitCommand, ForeverCommand, HelpCommand, HistoryCommand, IsAncestorOfCommand, NodesForCommand, OriginStatsCommand, QueryCommand, ReuseNodeForCommand, SearchLabelCommand, SearchPairwiseBlockingCommand, ShowDescriptionGraphCommand, ShowDLClausesCommand, ShowExistsCommand, ShowModelCommand, ShowNodeCommand, ShowSubtreeCommand, SingleStepCommand, UnprocessedDisjunctionsCommand, WaitForCommand

public abstract class AbstractCommand
extends java.lang.Object
implements ICommand


Field Summary
protected  java.lang.String[] args
           
protected  Debugger debugger
           
 
Constructor Summary
AbstractCommand()
           
 
Method Summary
abstract  void execute()
           
protected static java.lang.String formatBlockingStatus(Node node)
           
 java.lang.String[] getArgs()
           
 Debugger getDebugger()
           
abstract  java.lang.String getHelpText()
           
protected  void selectConsoleWindow()
           
 void setArgs(java.lang.String[] args)
           
 void setDebugger(Debugger debugger)
           
protected  void showTextInWindow(java.lang.String string, java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugger

protected Debugger debugger

args

protected java.lang.String[] args
Constructor Detail

AbstractCommand

public AbstractCommand()
Method Detail

execute

public abstract void execute()
Specified by:
execute in interface ICommand

getHelpText

public abstract java.lang.String getHelpText()
Specified by:
getHelpText in interface ICommand

showTextInWindow

protected void showTextInWindow(java.lang.String string,
                                java.lang.String title)

selectConsoleWindow

protected void selectConsoleWindow()

formatBlockingStatus

protected static java.lang.String formatBlockingStatus(Node node)
Parameters:
node - a node in the tableau
Returns:
"no" if node is not blocked; "directly by" plus "signature in cache" or the ID of the blocking node if the node is directly blocked; "indirectly by" plus "signature in cache" or the ID of the blocking node otherwise

getDebugger

public Debugger getDebugger()

setDebugger

public void setDebugger(Debugger debugger)
Specified by:
setDebugger in interface ICommand

getArgs

public java.lang.String[] getArgs()

setArgs

public void setArgs(java.lang.String[] args)
Specified by:
setArgs in interface ICommand