com.rubecula.darwin.examples.travelingsalesman
Class Phenotype_TS

java.lang.Object
  extended by net.sf.tostring0.AToString
      extended by com.rubecula.darwin.domain.environment.TraitMap_
          extended by com.rubecula.darwin.domain.environment.Phenotype_
              extended by com.rubecula.darwin.examples.travelingsalesman.Phenotype_TS
All Implemented Interfaces:
CacheSignature, Censusible, Fit, Phenotype, TraitMap, net.sf.tostring0.Identifiable, net.sf.tostring0.IToString

public class Phenotype_TS
extends Phenotype_

Author:
Robin Hillyard TODO this should really be generic and constructed by factory class

Field Summary
 
Fields inherited from class com.rubecula.darwin.domain.environment.Phenotype_
_extendedPhenotypes, LOG
 
Fields inherited from interface net.sf.tostring0.IToString
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE
 
Constructor Summary
Phenotype_TS()
           
 
Method Summary
static Client[] getClients(Environment environment)
          TODO move this somewhere (it isn't related to Phenotype)
 Client[] getClientsInOrder(Client[] clients)
           
 Client[] getClientsInOrder(Environment environment)
           
static java.lang.String[] getNames(Environment environment)
          TODO move this somewhere (it isn't related to Phenotype)
 
Methods inherited from class com.rubecula.darwin.domain.environment.Phenotype_
addExtended, addTrait, addTrait, doCensus, equals, getExtendedPhenotypes, getIdentifier, getSexTraits, hashCode
 
Methods inherited from class com.rubecula.darwin.domain.environment.TraitMap_
censusMe, getCensusibleChildren, getKeys, getSignature, getTrait, getTraits, put, size
 
Methods inherited from class net.sf.tostring0.AToString
toString, toString, toStringBrief, toStringId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.tostring0.IToString
toString, toStringBrief, toStringId
 
Methods inherited from interface com.rubecula.darwin.domain.helper.TraitMap
getKeys, getTrait, getTraits, size
 
Methods inherited from interface com.rubecula.darwin.domain.helper.CacheSignature
getSignature
 
Methods inherited from interface com.rubecula.darwin.domain.helper.Censusible
censusMe, getCensusibleChildren
 

Constructor Detail

Phenotype_TS

public Phenotype_TS()
Method Detail

getClients

public static Client[] getClients(Environment environment)
TODO move this somewhere (it isn't related to Phenotype)

Parameters:
environment -
Returns:
an array of Client objects which form the clients of this environment.

getNames

public static java.lang.String[] getNames(Environment environment)
TODO move this somewhere (it isn't related to Phenotype)

Parameters:
environment -
Returns:
an array of Client objects which form the clients of this environment.

getClientsInOrder

public Client[] getClientsInOrder(Client[] clients)
Parameters:
clients - array derived directly from the environment
Returns:
method to get the clients in their order of visitation.

getClientsInOrder

public Client[] getClientsInOrder(Environment environment)
Parameters:
environment -
Returns:
method to get the clients in their order of visitation.


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