coreEngine.Calibration.Organisms

## Class ConstrainedCap2Org

- java.lang.Object
- - coreEngine.Calibration.Organism
  - - coreEngine.Calibration.Organisms.ConstrainedCap2Org

-     public class ConstrainedCap2Org
      extends Organism

  Author:
    jltrask

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected java.lang.String[]` | `adjFactors`
    `protected static java.lang.String` | `idString`
    `static int[]` | `locations`

    - ### Fields inherited from class coreEngine.Calibration.Organism

      `alg, capacityDropPct, fitness, FITNESS_TYPE, FITNESS_TYPE2, geometry, multiFitness, mutationPct, numProfiles, profileMapping, scenIdx, seedIdx`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConstrainedCap2Org(GeneticAlgorithm alg)`
    `ConstrainedCap2Org(GeneticAlgorithm alg, int seedIdx)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `applyMeme()`
    `void` | `assignAFToSeed(int locIdx, int per)`
    `void` | `calcFitness()`
    `protected void` | `calcMultiFitness()`
    `protected void` | `calcSingleFitness()`
    `Organism[]` | `crossover(Organism mate)`
    `float` | `getAF(int locIdx)`
    `java.lang.String` | `getBinAF(int locIdx)`
    `ConstrainedCap2Org` | `getChildOrg(java.lang.String[] newAFArr)`
    `Organism` | `getDeepCopy()`
    `int` | `getDim1()`
    `float[]` | `getEncodingArray(int per)`
    `java.lang.String` | `getEncodingString()`
    `void` | `mutate()`
    `void` | `setAFs(java.lang.String[] afArr)`
    `void` | `setBinAF(java.lang.String newAF, int locIdx)`

    - ### Methods inherited from class coreEngine.Calibration.Organism

      `checkFitnessDiversity, getFitness, getScenarioIndex, getSeedBaseFitness, getSeedIdx, setGeometry, setScenarioIndex, setSeedIdx`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### idString

          protected static final java.lang.String idString

      See Also:
        Constant Field Values

    - #### locations

          public static int[] locations

    - #### adjFactors

          protected final java.lang.String[] adjFactors

  - ### Constructor Detail

    - #### ConstrainedCap2Org

          public ConstrainedCap2Org(GeneticAlgorithm alg)

    - #### ConstrainedCap2Org

          public ConstrainedCap2Org(GeneticAlgorithm alg,
                                    int seedIdx)

  - ### Method Detail

    - #### getDim1

          public int getDim1()

    - #### getChildOrg

          public ConstrainedCap2Org getChildOrg(java.lang.String[] newAFArr)

    - #### setAFs

          public void setAFs(java.lang.String[] afArr)

    - #### getAF

          public float getAF(int locIdx)

    - #### setBinAF

          public void setBinAF(java.lang.String newAF,
                               int locIdx)

    - #### getBinAF

          public java.lang.String getBinAF(int locIdx)

    - #### assignAFToSeed

          public void assignAFToSeed(int locIdx,
                                     int per)

      Specified by:
        `assignAFToSeed` in class `Organism`

    - #### calcFitness

          public void calcFitness()

      Specified by:
        `calcFitness` in class `Organism`

    - #### calcSingleFitness

          protected void calcSingleFitness()

    - #### calcMultiFitness

          protected void calcMultiFitness()

    - #### crossover

          public Organism[] crossover(Organism mate)

      Specified by:
        `crossover` in class `Organism`
      Returns:

    - #### mutate

          public void mutate()

      Specified by:
        `mutate` in class `Organism`

    - #### getDeepCopy

          public Organism getDeepCopy()

      Specified by:
        `getDeepCopy` in class `Organism`

    - #### applyMeme

          public int applyMeme()

      Specified by:
        `applyMeme` in class `Organism`

    - #### getEncodingArray

          public float[] getEncodingArray(int per)

      Specified by:
        `getEncodingArray` in class `Organism`

    - #### getEncodingString

          public java.lang.String getEncodingString()

      Specified by:
        `getEncodingString` in class `Organism`