edu.duke.cs.banjo.learner.components
Interface DeciderI

All Known Implementing Classes:
Decider

public interface DeciderI

Documents the interface for creating a decider implementation.

Details:

Change History:
Created on Apr 13, 2004

Author:
Jurgen Sladeczek (hjs)
For the latest info, please visit www.cs.duke.edu.

Method Summary
 boolean isChangeAccepted(double newScore, BayesNetChangeI bayesNetChange)
           
 java.lang.StringBuffer provideCollectedStatistics()
           
 void setCurrentScore(double currentScore)
          Sets the score of the current network.
 void updateProcessData(Settings processData)
          Updates whatever setting within processData that is being changed in the particular decider implementation (usually called from the overarching search method; See, e.g., the exchange of data between SearcherSimAnneal and DeciderMetropolis).
 

Method Detail

isChangeAccepted

public boolean isChangeAccepted(double newScore,
                                BayesNetChangeI bayesNetChange)
                         throws java.lang.Exception
Parameters:
newScore - The score of the network.
bayesNetChange - The change to the network.
Returns:
Determines whether to keep the proposed bayesNetChange, based on the newScore. Uses its internal knowledge of the current score together with its algorithm.
Throws:
java.lang.Exception

setCurrentScore

public void setCurrentScore(double currentScore)
                     throws java.lang.Exception
Sets the score of the current network.

Parameters:
currentScore - The score of the current network.
Throws:
java.lang.Exception

updateProcessData

public void updateProcessData(Settings processData)
                       throws java.lang.Exception
Updates whatever setting within processData that is being changed in the particular decider implementation (usually called from the overarching search method; See, e.g., the exchange of data between SearcherSimAnneal and DeciderMetropolis).

Parameters:
processData - The data to be exchanged.
Throws:
java.lang.Exception

provideCollectedStatistics

public java.lang.StringBuffer provideCollectedStatistics()
                                                  throws java.lang.Exception
Returns:
The statistics about the particular decider implementation.
Throws:
java.lang.Exception