com.rubecula.darwin.core
Interface TraitMap

All Known Subinterfaces:
Phenome, Phenotype
All Known Implementing Classes:
Phenome_Abstract, Phenome_Default, Phenome_Numerical, Phenotype_Abstract, Phenotype_Default, Phenotype_TS, TraitMap_Abstract

public interface TraitMap

Defines the operations on a collection of Trait instances.

Author:
Robin Hillyard

Method Summary
 Object add(Trait trait)
          Mutating method to add a trait to this map.
 Trait getTrait(String name)
          Accessor method to retrieve a trait from the map by name
 int size()
          Method to get the number of traits in this map.
 

Method Detail

add

Object add(Trait trait)
Mutating method to add a trait to this map.

Parameters:
trait -
Returns:
the result of calling HashMap.put(Object, Object).

getTrait

Trait getTrait(String name)
Accessor method to retrieve a trait from the map by name

Parameters:
name -
Returns:
the Trait corresponding to name.

size

int size()
Method to get the number of traits in this map.

See Also:
HashMap.size()