Neuroph

org.neuroph.util.plugins
Class LabelsPlugin

java.lang.Object
  extended by org.neuroph.util.plugins.PluginBase
      extended by org.neuroph.util.plugins.LabelsPlugin
All Implemented Interfaces:
java.io.Serializable

public class LabelsPlugin
extends PluginBase

See Also:
Serialized Form

Field Summary
private  java.util.Map<java.lang.Object,java.lang.String> labels
          Collection of labels for the neural network components
static java.lang.String LABELS_PLUGIN_NAME
           
private  java.lang.String neuralNetworkLabel
          Field for neural network label This field is required to solve the java bug described at http://bugs.sun.com/view_bug.do?bug_id=4957674
private static long serialVersionUID
          The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.
 
Constructor Summary
LabelsPlugin()
           
 
Method Summary
 java.lang.String getLabel(java.lang.Object object)
          Returns label for the specified object
 void setLabel(java.lang.Object object, java.lang.String label)
          Sets label for the specified object
 
Methods inherited from class org.neuroph.util.plugins.PluginBase
getName, getParentNetwork, setParentNetwork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABELS_PLUGIN_NAME

public static final java.lang.String LABELS_PLUGIN_NAME
See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.

See Also:
Constant Field Values

labels

private java.util.Map<java.lang.Object,java.lang.String> labels
Collection of labels for the neural network components


neuralNetworkLabel

private java.lang.String neuralNetworkLabel
Field for neural network label This field is required to solve the java bug described at http://bugs.sun.com/view_bug.do?bug_id=4957674

Constructor Detail

LabelsPlugin

public LabelsPlugin()
Method Detail

getLabel

public java.lang.String getLabel(java.lang.Object object)
Returns label for the specified object

Parameters:
object - object for which label should be returned
Returns:
label for the specified object

setLabel

public void setLabel(java.lang.Object object,
                     java.lang.String label)
Sets label for the specified object

Parameters:
object - object to set label
label - label to set

Neuroph