|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Algorithm
An Algorithm can examine and manipulate the current Graph. The interface Algorithm should be implemented by a class in order to be able to analyse the Graph shown by the GraphApplication. Moreover, it is implemented by all existing layout algorithms.
de.fhstralsund.vinets.control.GraphApplication
Method Summary | |
---|---|
boolean |
accept(Parameter params)
Checks whether the passed Parameter is appropriate as input for this Algorithm. |
Parameter |
execute(Parameter params)
Examines the Graph passed within the Parameter object. |
java.lang.String |
getHint()
Delivers a short help text explaining the features of this Algorithm. |
java.lang.String |
getName()
Delivers a text for the button linked to this Algorithm. |
Method Detail |
---|
boolean accept(Parameter params)
false
is returned,
the Parameter message should be set to a String describing the
cause for the failing.
params
- a Parameter object containing the input Graph and
possible additional input values.
Parameter execute(Parameter params)
params
- a Parameter encapsulating a Graph and (optionally) a
String and additional properties.
Parameter
java.lang.String getName()
java.lang.String getHint()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |