org.simnet
Class NetworkPreferences

java.lang.Object
  extended by org.simnet.NetworkPreferences

public final class NetworkPreferences
extends Object

NetworkPreferences handles storage and retrieval of User Preferences for the neural network.


Method Summary
static double getActivation()
          Return the activation preference setting.
static String getActivationFunction()
          Return the activation function preference setting.
static double getActivationThreshold()
          Return the activation threshold preference setting.
static double getBias()
          Return the bias preference setting.
static double getDecay()
          Return the decay preference setting.
static String getLearningRule()
          Return the learning rule preference setting.
static double getMomentum()
          Return the momentum preference setting.
static double getNrnIncrement()
          Return the neuron increment preference setting.
static double getNrnLowerBound()
          Return the neuron lower bound preference setting.
static double getNrnUpperBound()
          Return the neuron upper bound preference setting.
static String getOutputFunction()
          Return the output function preference setting.
static double getOutputSignal()
          Return the output signal preference setting.
static double getOutputThreshold()
          Return the output threshold preference setting.
static double getStrength()
          Return the strength preference setting.
static double getWtIncrement()
          Return the weight increment preference setting.
static double getWtLowerBound()
          Return the weight lower bound preference setting.
static double getWtUpperBound()
          Return the weight increment preference setting.
static void saveAll()
          Save all user preferences.
static void setActivation(double d)
          Set the activation preference setting to d.
static void setActivationFunction(String s)
          Set the activation function preference setting to s.
static void setActivationThreshold(double d)
          Set the activation preference setting to d.
static void setBias(double d)
          Set the bias preference setting to d.
static void setDecay(double d)
          Set the decay preference setting to d.
static void setLearningRule(String s)
          Set the learning rule preference setting to s.
static void setMomentum(double d)
          Set the momentum preference setting to d.
static void setNrnIncrement(double d)
          Set the neuron increment preference setting to d.
static void setNrnLowerBound(double d)
          Set the neuron lower bound preference setting to d.
static void setNrnUpperBound(double d)
          Set the neuron upper bound preference setting to d.
static void setOutputFunction(String s)
          Set the output function preference setting to s.
static void setOutputSignal(double d)
          Set the output signal preference setting to d.
static void setOutputThreshold(double d)
          Set the output threshold preference setting to d.
static void setStrength(double d)
          Set the strength preference setting to d.
static void setWtIncrement(double d)
          Set the weight increment preference setting to d.
static void setWtLowerBound(double d)
          Set the weight lower bound preference setting to d.
static void setWtUpperBound(double d)
          Set the weight upper bound preference setting to d.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

saveAll

public static void saveAll()
Save all user preferences.


getActivationFunction

public static String getActivationFunction()
Return the activation function preference setting. Defaults to "Linear".

Returns:
the activation function preference setting

setActivationFunction

public static void setActivationFunction(String s)
Set the activation function preference setting to s.

Parameters:
s - activation function preference setting

getOutputFunction

public static String getOutputFunction()
Return the output function preference setting. Defaults to "Threshold".

Returns:
the output function preference setting

setOutputFunction

public static void setOutputFunction(String s)
Set the output function preference setting to s.

Parameters:
s - output function preference setting

getActivation

public static double getActivation()
Return the activation preference setting. Defaults to 0.0d.

Returns:
the activation preference setting

setActivation

public static void setActivation(double d)
Set the activation preference setting to d.

Parameters:
d - activation preference setting

getActivationThreshold

public static double getActivationThreshold()
Return the activation threshold preference setting. Defaults to 0.5d.

Returns:
the activation threshold preference setting

setActivationThreshold

public static void setActivationThreshold(double d)
Set the activation preference setting to d.

Parameters:
d - activation preference setting

getBias

public static double getBias()
Return the bias preference setting. Defaults to 0.0d.

Returns:
the bias preference setting

setBias

public static void setBias(double d)
Set the bias preference setting to d.

Parameters:
d - bias preference setting

getDecay

public static double getDecay()
Return the decay preference setting. Defaults to 0.0d.

Returns:
the decay preference setting

setDecay

public static void setDecay(double d)
Set the decay preference setting to d.

Parameters:
d - decay preference setting

getNrnIncrement

public static double getNrnIncrement()
Return the neuron increment preference setting. Defaults to 0.1d.

Returns:
the neuron increment preference setting

setNrnIncrement

public static void setNrnIncrement(double d)
Set the neuron increment preference setting to d.

Parameters:
d - neuron increment preference setting

getNrnLowerBound

public static double getNrnLowerBound()
Return the neuron lower bound preference setting. Defaults to -1.0d.

Returns:
the neuron lower bound preference setting

setNrnLowerBound

public static void setNrnLowerBound(double d)
Set the neuron lower bound preference setting to d.

Parameters:
d - neuron lower bound preference setting

getOutputSignal

public static double getOutputSignal()
Return the output signal preference setting. Defaults to 1.0d.

Returns:
the output signal preference setting

setOutputSignal

public static void setOutputSignal(double d)
Set the output signal preference setting to d.

Parameters:
d - output signal preference setting

getOutputThreshold

public static double getOutputThreshold()
Return the output threshold preference setting. Defaults to 0.5d.

Returns:
the output threshold preference setting

setOutputThreshold

public static void setOutputThreshold(double d)
Set the output threshold preference setting to d.

Parameters:
d - output threshold preference setting

getNrnUpperBound

public static double getNrnUpperBound()
Return the neuron upper bound preference setting. Defaults to 1.0d.

Returns:
the neuron upper bound preference setting

setNrnUpperBound

public static void setNrnUpperBound(double d)
Set the neuron upper bound preference setting to d.

Parameters:
d - neuron upper bound preference setting

getLearningRule

public static String getLearningRule()
Return the learning rule preference setting. Defaults to "Hebbian".

Returns:
the learning rule preference setting

setLearningRule

public static void setLearningRule(String s)
Set the learning rule preference setting to s.

Parameters:
s - learning rule preference setting

getStrength

public static double getStrength()
Return the strength preference setting. Defaults to "1.0d".

Returns:
the strength preference setting

setStrength

public static void setStrength(double d)
Set the strength preference setting to d.

Parameters:
d - strength preference setting

getMomentum

public static double getMomentum()
Return the momentum preference setting. Defaults to "0.2d".

Returns:
the momentum preference setting

setMomentum

public static void setMomentum(double d)
Set the momentum preference setting to d.

Parameters:
d - momentum preference setting

getWtIncrement

public static double getWtIncrement()
Return the weight increment preference setting. Defaults to "0.1d".

Returns:
the weight increment preference setting

setWtIncrement

public static void setWtIncrement(double d)
Set the weight increment preference setting to d.

Parameters:
d - weight increment preference setting

getWtLowerBound

public static double getWtLowerBound()
Return the weight lower bound preference setting. Defaults to "-1.0d".

Returns:
the weight lower bound preference setting

setWtLowerBound

public static void setWtLowerBound(double d)
Set the weight lower bound preference setting to d.

Parameters:
d - weight lower bound preference setting

getWtUpperBound

public static double getWtUpperBound()
Return the weight increment preference setting. Defaults to "1.0d".

Returns:
the weight increment preference setting

setWtUpperBound

public static void setWtUpperBound(double d)
Set the weight upper bound preference setting to d.

Parameters:
d - weight upper bound preference setting