Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.app.analyst.script
Class AnalystScript

    java.lang.Object
      org.encog.app.analyst.script.AnalystScript

    public class AnalystScript

extends Object

Holds a script for the Encog Analyst.

Field Summary
`static int` | `DEFAULT_MAX_CLASS` The default MAX size for a class.

Constructor Summary
`AnalystScript()` Construct an analyst script.

Method Summary
`void` | `addTask(AnalystTask task)` Add a task.
`void` | `clearTasks()` Clear all tasks.
`CSVFormat` | `determineInputFormat(String sourceID)` Determine the input format for the specified file.
`CSVFormat` | `determineOutputFormat()` Determine the output format.
`boolean` | `expectInputHeaders(String filename)` Determine if input headers are expected.
`DataField` | `findDataField(String name)` Find the specified data field.
`int` | `findDataFieldIndex(DataField df)` Find the specified data field and return its index.
`AnalystField` | `findNormalizedField(String name, int slice)` Find the specified normalized field.
`String` | `getBasePath()`
`DataField[]` | `getFields()`
`AnalystNormalize` | `getNormalize()`
`int` | `getPrecision()`
`ScriptProperties` | `getProperties()`
`AnalystSegregate` | `getSegregate()`
`AnalystTask` | `getTask(String name)` Get the specified task.
`Map<String,AnalystTask>` | `getTasks()`
`void` | `init()` Init this script.
`boolean` | `isGenerated(String filename)` Determine if the specified file was generated.
`void` | `load(InputStream stream)` Load the script.
`void` | `markGenerated(String filename)` Mark the sepcified filename as generated.
`File` | `resolveFilename(String sourceID)` Resolve the specified filename.
`void` | `save(OutputStream stream)` Save to the specified output stream.
`void` | `setBasePath(String theBasePath)` Set the base path.
`void` | `setFields(DataField[] theFields)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DEFAULT_MAX_CLASS

    public static final int DEFAULT_MAX_CLASS

  The default MAX size for a class.

  See Also:
    Constant Field Values

Constructor Detail

### AnalystScript

    public AnalystScript()

  Construct an analyst script.

Method Detail

### addTask

    public final void addTask(AnalystTask task)

  Add a task.

  Parameters:
    `task` - The task to add.

### clearTasks

    public final void clearTasks()

  Clear all tasks.

### determineInputFormat

    public final CSVFormat determineInputFormat(String sourceID)

  Determine the input format for the specified file.

  Parameters:
    `sourceID` - The file.
  Returns:
    The input format.

### determineOutputFormat

    public final CSVFormat determineOutputFormat()

  Determine the output format.

  Returns:
    The output format.

### expectInputHeaders

    public final boolean expectInputHeaders(String filename)

  Determine if input headers are expected.

  Parameters:
    `filename` - The filename.
  Returns:
    True if headers are expected.

### findDataField

    public final DataField findDataField(String name)

  Find the specified data field. Use name to find, and ignore case.

  Parameters:
    `name` - The name to search for.
  Returns:
    The specified data field.

### findDataFieldIndex

    public final int findDataFieldIndex(DataField df)

  Find the specified data field and return its index.

  Parameters:
    `df` - The data field to search for.
  Returns:
    The index of the specified data field, or -1 if not found.

### findNormalizedField

    public final AnalystField findNormalizedField(String name,
                                                  int slice)

  Find the specified normalized field. Search without case.

  Parameters:
    `name` - The name of the field we are searching for.
    `slice` - The timeslice.
  Returns:
    The analyst field that was found.

### getBasePath

    public final String getBasePath()

  Returns:
    The base path.

### getFields

    public final DataField[] getFields()

  Returns:
    the data fields.

### getNormalize

    public final AnalystNormalize getNormalize()

  Returns:
    the normalize

### getPrecision

    public final int getPrecision()

  Returns:
    The precision.

### getProperties

    public final ScriptProperties getProperties()

  Returns:
    the properties

### getSegregate

    public final AnalystSegregate getSegregate()

  Returns:
    the segregate

### getTask

    public final AnalystTask getTask(String name)

  Get the specified task.

  Parameters:
    `name` - The name of the testk.
  Returns:
    The analyst task.

### getTasks

    public final Map<String,AnalystTask> getTasks()

  Returns:
    The tasks.

### init

    public final void init()

  Init this script.

### isGenerated

    public final boolean isGenerated(String filename)

  Determine if the specified file was generated.

  Parameters:
    `filename` - The filename to check.
  Returns:
    True, if the specified file was generated.

### load

    public final void load(InputStream stream)

  Load the script.

  Parameters:
    `stream` - The stream to load from.

### markGenerated

    public final void markGenerated(String filename)

  Mark the sepcified filename as generated.

  Parameters:
    `filename` - The filename.

### resolveFilename

    public final File resolveFilename(String sourceID)

  Resolve the specified filename.

  Parameters:
    `sourceID` - The filename to resolve.
  Returns:
    The file path.

### save

    public final void save(OutputStream stream)

  Save to the specified output stream.

  Parameters:
    `stream` - The output stream.

### setBasePath

    public final void setBasePath(String theBasePath)

  Set the base path.

  Parameters:
    `theBasePath` - The base path.

### setFields

    public final void setFields(DataField[] theFields)

  Parameters:
    `theFields` - the fields to set

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011. All Rights Reserved.