|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.usc.cse.desi.algorithm.AbstractAlgorithm
This class is the super type for all algorithms that can be run in DeSi.
| Constructor Summary | |
AbstractAlgorithm()
|
|
| Method Summary | |
protected abstract DESIViewModel |
executeAlgo(DESIViewModel cur_model)
To implement an algorithm override this method. |
DESIViewModel |
run(DESIViewModel cur_model,
boolean clone)
This method is not meant to be overridden. |
static DESIViewModel |
run(java.lang.String algo_name,
DESIViewModel cur_model)
This method can be called to create and run an algorithm. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractAlgorithm()
| Method Detail |
public static final DESIViewModel run(java.lang.String algo_name,
DESIViewModel cur_model)
algo_name - String - The fully qualified name of the algorithm that you want to run. This algo must be a subclass of this class.cur_model - DESIViewModel - The current model.
public final DESIViewModel run(DESIViewModel cur_model,
boolean clone)
cur_model - DESIViewModel - The current model of the system.clone - boolean - True if it should make a copy of the model, false if it should work on the given model.
protected abstract DESIViewModel executeAlgo(DESIViewModel cur_model)
cur_model - DESIViewModel - The current model of the system.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||