org.encog.persist.persistors.generic
Class ObjectTagger

java.lang.Object
  extended by org.encog.persist.persistors.generic.ObjectTagger

public class ObjectTagger
extends Object

The object tagger is used in generic persistence to tag objects with a reference number.


Constructor Summary
ObjectTagger()
           
 
Method Summary
 void analyze(EncogPersistedObject encogObject)
          Analyze the specified object and build a reference map.
 void clear()
          Clear the map and current id.
 int getReference(Object obj)
          Get the reference for the specified object.
 boolean hasReference(Object obj)
          Returns true if the object has a reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectTagger

public ObjectTagger()
Method Detail

analyze

public void analyze(EncogPersistedObject encogObject)
Analyze the specified object and build a reference map.

Parameters:
encogObject - The object to analyze.

clear

public void clear()
Clear the map and current id.


getReference

public int getReference(Object obj)
Get the reference for the specified object.

Parameters:
obj - The object to check.
Returns:
-1 for no reference, otherwise the reference numebr.

hasReference

public boolean hasReference(Object obj)
Returns true if the object has a reference.

Parameters:
obj - The object to check.
Returns:
True if the object has a reference.


Copyright © 2011. All Rights Reserved.