|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IInferenceAlgorithm
This is a interface which every inference algorithm should implement. Plugins adding new inference algorithms should also implement this interface.
Method Summary | |
---|---|
String |
getDescription()
Obtains the description of this algorithm. |
String |
getName()
Obtains the name of this algorithm |
Graph |
getNetwork()
|
void |
propagate()
Propagate evidences. |
void |
reset()
Resets the algorithm and optionally the network state. |
void |
run()
Runs the algorithm given the current state of the attributes. |
void |
setNetwork(Graph g)
Sets the network (graph) treated by this algorithm. |
Method Detail |
---|
void setNetwork(Graph g) throws IllegalArgumentException
g
- : the network (graph) to set.
IllegalArgumentException
- : if the given graph is not appropriate
for this algorithm.Graph getNetwork()
void run() throws IllegalStateException
IllegalStateException
- : this exception
may also be used for general purpose.String getName()
String getDescription()
void reset()
void propagate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |