|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAlgorithmParams
It is a data model holding all information needed to lauch a c++ executable.
It is a singleton.
Important:
Use AlgorithmParamsChangeListener to make a change of its value without triggering any ParamEvent.
Use AlgorithmParamsListener to make a change of its value whose value needs to trigger any ParamEvent.
AlgorithmParamsListener
,
ParamEventListener
Method Summary | |
void |
addListener(ParamEventListener l)
Add a ParamEventListener object to EventListenerList |
void |
changeValue(java.lang.String key,
java.lang.String val)
Change the value of the algorithm option. |
static AlgorithmParams |
getInstance()
Get this only AlgorithmParams object |
java.lang.String |
getValue(java.lang.String key)
Get the value of the algorithm option. |
boolean |
loadParamsFromFile(java.lang.String fileName)
Get algorithm options from a file. |
void |
removeListener(ParamEventListener l)
Remove a ParamEventListener object from EventListenerList |
boolean |
saveParamsToFile(java.lang.String fileName)
Save the algorithm options to a file. |
void |
setValue(java.lang.String key,
java.lang.String val)
Set the value of the algorithm option. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static AlgorithmParams getInstance()
public java.lang.String getValue(java.lang.String key)
key
- HashMap key
public void setValue(java.lang.String key, java.lang.String val)
key
- key which is the algorithm option nameval
- value of the algorithm optionpublic void changeValue(java.lang.String key, java.lang.String val)
key
- key which is the algorithm option nameval
- value of the algorithm optionpublic void addListener(ParamEventListener l)
l
- the listener object to be addedpublic void removeListener(ParamEventListener l)
l
- the listener object to be removedpublic boolean loadParamsFromFile(java.lang.String fileName)
fileName
- name of the file.
public boolean saveParamsToFile(java.lang.String fileName) throws java.io.IOException
fileName
- name of the file
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |