|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.comp.Component
|
+--drcl.ruv.Term
The base class for all terminal classes. Ports
ShellContract.
| Inner classes inherited from class drcl.comp.Component |
Component.LockPack |
| Constructor Summary | |
Term()
|
|
Term(java.lang.String id_)
|
|
| Method Summary | |
protected abstract void |
_write(java.lang.String msg_)
Puts the message on the terminal. |
protected void |
addCmdToHistory(java.lang.String cmd_)
|
protected void |
autocomplete(java.lang.String cmd_,
int pos_)
|
protected void |
diagnoze(java.lang.String cmd_)
|
void |
duplicate(java.lang.Object source_)
Duplicates the content of source_, including ID, name, child components and connections among them, to this component. |
protected boolean |
evalCommand(java.lang.String cmd_)
Return false if the previous command is not finished yet. |
protected void |
evalFile(java.lang.String filename_)
|
void |
exit()
Exits the terminal. |
protected java.lang.String |
getHistory(int increment_)
|
protected java.lang.String |
getHistoryDown(java.lang.String partial_)
Returns the most early command in history from the current position down that starts with partial_. |
protected int |
getHistorySize()
|
protected java.lang.String |
getHistoryUp(java.lang.String partial_)
Returns the most recent command in history from the current position up that starts with partial_. |
protected java.lang.String |
getPrompt()
|
java.lang.String |
getTitle()
|
abstract void |
hide()
|
protected java.lang.String |
historySubList(int start_)
|
protected java.lang.String |
historySubList(int start_,
int end_)
|
java.lang.String |
info()
Returns information regarding this component. |
protected void |
interrupt()
|
abstract boolean |
isFocused()
|
static boolean |
isOutBoundCommand(java.lang.String cmd_)
|
boolean |
isOutputEnabled()
Returns true if the terminal is enabled to output via the "output" port. |
protected boolean |
isPrevousCommandFinished()
|
boolean |
isStdoutEnabled()
Returns true if the terminal is enabled to output to the stdout device. |
boolean |
isTerminalDisplayEnabled()
Returns true if the terminal is enabled to display output. |
void |
process(java.lang.Object data_,
Port inPort_)
The main callback method of a component. |
void |
quit()
Quits the application. |
void |
reset()
Resets the component for being used anew. |
void |
RUVOutput(java.lang.String msg_)
Implements the RUVOutput interface. |
protected void |
saveHistory(java.io.BufferedWriter bw_)
|
protected abstract void |
setCommand(java.lang.String newCmd_,
int pos_)
|
void |
setOutputEnabled(boolean enabled_)
Enables/disables output via the "output" port. |
protected void |
setPrompt(java.lang.String prompt_)
|
void |
setStdoutEnabled(boolean enabled_)
Enables/disables output to the stdout device. |
void |
setTerminalDisplayEnabled(boolean enabled_)
Enables/disables terminal output display. |
void |
setTitle(java.lang.String title_)
|
abstract void |
show()
|
void |
write(java.lang.String msg_)
Puts the message on the terminal. |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Term()
public Term(java.lang.String id_)
| Method Detail |
public void reset()
Componentreset in class Componentpublic java.lang.String info()
Componentinfo in class Component
public void process(java.lang.Object data_,
Port inPort_)
Componentprocess in class Componentdrcl.comp.Componentdata_ - the arrival data.inPort_ - the port where the data arrives.public void duplicate(java.lang.Object source_)
Componentduplicate in class Componentpublic boolean isStdoutEnabled()
stdout device.public void setStdoutEnabled(boolean enabled_)
stdout device.public boolean isOutputEnabled()
public void setOutputEnabled(boolean enabled_)
public boolean isTerminalDisplayEnabled()
public void setTerminalDisplayEnabled(boolean enabled_)
public final void write(java.lang.String msg_)
_write(String) to implement
their own display mechanism.protected abstract void _write(java.lang.String msg_)
public final void RUVOutput(java.lang.String msg_)
RUVOutput interface.RUVOutput in interface RUVOutputpublic abstract void show()
public abstract void hide()
public abstract boolean isFocused()
protected abstract void setCommand(java.lang.String newCmd_,
int pos_)
public void setTitle(java.lang.String title_)
public java.lang.String getTitle()
protected void setPrompt(java.lang.String prompt_)
protected java.lang.String getPrompt()
protected final boolean evalCommand(java.lang.String cmd_)
protected final void evalFile(java.lang.String filename_)
protected final boolean isPrevousCommandFinished()
public static final boolean isOutBoundCommand(java.lang.String cmd_)
protected final void autocomplete(java.lang.String cmd_,
int pos_)
protected final void interrupt()
public void exit()
public void quit()
protected int getHistorySize()
protected void addCmdToHistory(java.lang.String cmd_)
protected java.lang.String getHistory(int increment_)
protected java.lang.String getHistoryUp(java.lang.String partial_)
partial_.null if no such command is found.protected java.lang.String getHistoryDown(java.lang.String partial_)
partial_.null if no such command is found.protected java.lang.String historySubList(int start_)
protected java.lang.String historySubList(int start_,
int end_)
protected void saveHistory(java.io.BufferedWriter bw_)
protected void diagnoze(java.lang.String cmd_)
|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||