org.encog.bot.dataunit

## Class CodeDataUnit

- java.lang.Object
- - org.encog.bot.dataunit.DataUnit
  - - org.encog.bot.dataunit.CodeDataUnit

-     public class CodeDataUnit
      extends DataUnit

  A data unit that holds code.
  Author:
    jheaton

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CodeDataUnit()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getCode()`
    `void` | `setCode(String str)` Set the code to the specified string.
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### CodeDataUnit

          public CodeDataUnit()

  - ### Method Detail

    - #### getCode

          public final String getCode()

      Returns:
        THe code for this data unit.

    - #### setCode

          public final void setCode(String str)

      Set the code to the specified string.
      Parameters:
        `str` - The new code.

    - #### toString

          public final String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.