com.proatech.vd.evaluate
Class AbstractEvaluator

java.lang.Object
  extended bycom.proatech.vd.evaluate.AbstractEvaluator

public abstract class AbstractEvaluator
extends java.lang.Object


Field Summary
static int PIPE_TYPE_SCALAR
           
static int PIPE_TYPE_VECTOR
           
 
Constructor Summary
AbstractEvaluator()
          Consructor
 
Method Summary
 void construct()
          Invoked only one time when the element is being created.
 int getAvailableSampleCount()
          Returns maximum count of samples available in all inputs that can be read simultaneously.
 int getAvailableSampleCount(int index)
          Returns size of buffer in input selected by index.
 java.lang.String getInputPipeName(int index)
          Get input pipe's name.
 int getInputPipeType(int index)
          Returns input type.
 int getInputsCount()
          Gets inputs count.
 java.lang.String getOutputPipeName(int index)
          Get output pipe's name.
 int getOutputPipeType(int index)
          Returns output type.
 int getOutputsCount()
          Gets outputs count.
 java.lang.Object[] getPropertyDescription(java.lang.String name)
          Returns description of public property visible in GUI.
 boolean isInputConnected(int index)
          Returns status of the input selected by index.
 void process()
          Processing method.
 int readInputScalar(int index)
          Read input scalar value.
 void readInputVector(int index, int[] vector)
          Read input vector.
 void reinit()
          Reinit method.
protected static java.lang.Object[] searchPropertyDescription(java.lang.String name, java.lang.String[][] table)
           
 void setInputPipeName(int index, java.lang.String name)
          Set input pipe's name.
 void setInputPipeType(int index, int type)
          Sets input type.
 void setInputsCount(int number)
          Sets inputs count.
 void setOutputPipeName(int index, java.lang.String name)
          Sets output pipe's name.
 void setOutputPipeType(int index, int type)
          Sets output type.
 void setOutputsCount(int number)
          Sets outputs count.
 void start()
          Invoked when processing is starting.
 void stop()
          Invoked when processing is stopped.
 void writeOutputScalar(int index, int value)
          Writes scalar sample to output selected by index.
 void writeOutputVector(int index, int[] vector)
          Writes vector sample to output selected by index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PIPE_TYPE_SCALAR

public static final int PIPE_TYPE_SCALAR
See Also:
Constant Field Values

PIPE_TYPE_VECTOR

public static final int PIPE_TYPE_VECTOR
See Also:
Constant Field Values
Constructor Detail

AbstractEvaluator

public AbstractEvaluator()
Consructor

Method Detail

readInputVector

public void readInputVector(int index,
                            int[] vector)
Read input vector. After this method is invoked, the vector is purged from input buffer.


readInputScalar

public int readInputScalar(int index)
Read input scalar value. After this method is invoked, the value is purged from input buffer.


getAvailableSampleCount

public int getAvailableSampleCount()
Returns maximum count of samples available in all inputs that can be read simultaneously.


getAvailableSampleCount

public int getAvailableSampleCount(int index)
Returns size of buffer in input selected by index.


writeOutputScalar

public void writeOutputScalar(int index,
                              int value)
Writes scalar sample to output selected by index.


writeOutputVector

public void writeOutputVector(int index,
                              int[] vector)
Writes vector sample to output selected by index.


isInputConnected

public boolean isInputConnected(int index)
Returns status of the input selected by index.


reinit

public void reinit()
            throws java.lang.Exception
Reinit method.

Throws:
java.lang.Exception

process

public void process()
             throws java.lang.Exception
Processing method.

Throws:
java.lang.Exception

getPropertyDescription

public java.lang.Object[] getPropertyDescription(java.lang.String name)
Returns description of public property visible in GUI.


searchPropertyDescription

protected static final java.lang.Object[] searchPropertyDescription(java.lang.String name,
                                                                    java.lang.String[][] table)

start

public void start()
           throws java.lang.Exception
Invoked when processing is starting.

Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Invoked when processing is stopped.

Throws:
java.lang.Exception

construct

public void construct()
               throws java.lang.Exception
Invoked only one time when the element is being created.

Throws:
java.lang.Exception

getInputPipeType

public int getInputPipeType(int index)
Returns input type.


setInputPipeType

public void setInputPipeType(int index,
                             int type)
Sets input type.


getOutputPipeType

public int getOutputPipeType(int index)
Returns output type.


setOutputPipeType

public void setOutputPipeType(int index,
                              int type)
Sets output type.


getInputsCount

public int getInputsCount()
Gets inputs count.


getOutputsCount

public int getOutputsCount()
Gets outputs count.


setInputsCount

public final void setInputsCount(int number)
Sets inputs count.


setOutputsCount

public final void setOutputsCount(int number)
Sets outputs count.


getOutputPipeName

public java.lang.String getOutputPipeName(int index)
Get output pipe's name.


setOutputPipeName

public void setOutputPipeName(int index,
                              java.lang.String name)
Sets output pipe's name.


getInputPipeName

public java.lang.String getInputPipeName(int index)
Get input pipe's name.


setInputPipeName

public void setInputPipeName(int index,
                             java.lang.String name)
Set input pipe's name.