|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.core.gnuplot.AbstractScriptlet
public abstract class AbstractScriptlet
Ancestor for scriplets that generate Gnuplot scripts (or parts of it).
| Field Summary | |
|---|---|
static String |
COMMENT
the character for comments in Gnuplot scripts. |
protected PlaceholderFile |
m_DataFile
the data file to use. |
protected String |
m_LastError
stores the error message if the check failed. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractScriptlet()
|
|
| Method Summary | |
|---|---|
String |
check()
Hook method for performing checks. |
String |
dataFileTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected abstract String |
doGenerate()
Generates the actual script code. |
String |
generate()
Returns the generated script-code string. |
PlaceholderFile |
getDataFile()
Returns the data file in use. |
String |
getLastError()
Returns the error that occurred during the last generation. |
boolean |
hasLastError()
Checks whether an error was encountered during the last generation. |
protected void |
reset()
Resets the scriptlet. |
void |
setDataFile(PlaceholderFile value)
Sets the data file to use. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String COMMENT
protected PlaceholderFile m_DataFile
protected String m_LastError
| Constructor Detail |
|---|
public AbstractScriptlet()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerprotected void reset()
reset in class AbstractOptionHandlerpublic void setDataFile(PlaceholderFile value)
value - the data filepublic PlaceholderFile getDataFile()
public String dataFileTipText()
public boolean hasLastError()
public String getLastError()
public String check()
protected abstract String doGenerate()
public String generate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||