com.rubecula.darwin.domain.helper
Class FitnessCacheKey

java.lang.Object
  extended by com.rubecula.darwin.domain.helper.FitnessCacheKey
All Implemented Interfaces:
net.sf.tostring0.Identifiable

public class FitnessCacheKey
extends java.lang.Object
implements net.sf.tostring0.Identifiable

This class is used to form the key for the FitnessCache

Author:
Robin Hillyard

Constructor Summary
FitnessCacheKey(TraitMap traits, FitnessEngine engine, Environment environment)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Use equality for the _engine directly but for the _traits, get the signature and check its equality.
 java.lang.String getIdentifier()
           
 int hashCode()
          Use the hash code for the _engine directly but for the _traits, get the signature and use its hash code.
 java.lang.String toString()
          TODO consider to use audit utilities
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FitnessCacheKey

public FitnessCacheKey(TraitMap traits,
                       FitnessEngine engine,
                       Environment environment)
Parameters:
traits - the traits that will form part of our fitness cache key
engine - the fitness engine that will form part of our fitness cache kay
environment - XXX
Method Detail

equals

public boolean equals(java.lang.Object obj)
Use equality for the _engine directly but for the _traits, get the signature and check its equality.

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getIdentifier

public java.lang.String getIdentifier()
Specified by:
getIdentifier in interface net.sf.tostring0.Identifiable
See Also:
Identifiable.getIdentifier()

hashCode

public int hashCode()
Use the hash code for the _engine directly but for the _traits, get the signature and use its hash code.

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

public java.lang.String toString()
TODO consider to use audit utilities

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.