org.imirsel.m2k.math
Class ZeroCrossings

java.lang.Object
  extended byjava.util.Observable
      extended byncsa.d2k.core.modules.RootModule
          extended byncsa.d2k.core.modules.ConfigurableModule
              extended byncsa.d2k.core.modules.EmbeddedPipeModule
                  extended byncsa.d2k.core.modules.ExecModule
                      extended byncsa.d2k.core.modules.ComputeModule
                          extended byncsa.d2k.core.modules.ReentrantComputeModule
                              extended byncsa.d2k.core.modules.OrderedReentrantModule
                                  extended byorg.imirsel.m2k.math.ZeroCrossings
All Implemented Interfaces:
java.lang.Cloneable, ncsa.d2k.core.FullPipeManager, ncsa.d2k.core.modules.Module, ncsa.d2k.core.modules.ReentrantSystemModule, java.io.Serializable, ncsa.d2k.core.modules.SystemModule

public class ZeroCrossings
extends ncsa.d2k.core.modules.OrderedReentrantModule

Counts the number of zero-crossings in an array. A D2K/M2K module that reads in a double array, and returns the number of zero-crossings between adjecent elements in the inputted array.

Author:
Andreas Ehmann
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ncsa.d2k.core.modules.ReentrantComputeModule
master
 
Fields inherited from class ncsa.d2k.core.modules.ConfigurableModule
addedInputInfo, addedInputNames, addedInputTypes, addedOutputInfo, addedOutputNames, addedOutputTypes, addPortListeners
 
Fields inherited from class ncsa.d2k.core.modules.RootModule
alias, children, DEBUG_LEVEL, EMPTY_INPUT, ERROR_LEVEL, executionManager, FATAL_LEVEL, HAVE_INPUT, INFO_LEVEL, iPipes, iPipesIndex, iTriggers, oPipes, oPipesIndex, oTriggers, parents, pipesFullManager, stats, triggerChildren, triggerParents, WARN_LEVEL
 
Fields inherited from interface ncsa.d2k.core.modules.SystemModule
BLOCKED_STATE, IDLE_STATE, MEDIUM, MEDIUM_RARE, MEDIUM_WELL, RARE, READY_STATE, WELL, WORKING_STATE
 
Constructor Summary
ZeroCrossings()
           
 
Method Summary
 void doit()
          Calculate the number of zero-crossings between adjecent elements in the inputted array.
 java.lang.String getInputInfo(int i)
          Returns a text description for the indicated input
 java.lang.String getInputName(int i)
          Returns a text name for the indicated input
 java.lang.String[] getInputTypes()
          Returns an array of strings containing the Java data types of the input.
 java.lang.String getModuleInfo()
          Returns information about the module
 java.lang.String getModuleName()
          Returns the name of the module
 java.lang.String getOutputInfo(int i)
          Returns a text description for the indicated output
 java.lang.String getOutputName(int i)
          Returns a text name for the indicated output
 java.lang.String[] getOutputTypes()
          Returns an array of strings containing the Java data types of the outputs.
 
Methods inherited from class ncsa.d2k.core.modules.OrderedReentrantModule
begin, end, getOrdered, pushAndSerializeOutput, pushTo, setOrdered
 
Methods inherited from class ncsa.d2k.core.modules.ReentrantComputeModule
createClone, disableReentrant, execute, getModuleStatistics, initModule, isClone, isMaster, pipeEmpty, pipeFull, setFlags, setFlags, setModuleStatisticsByMachine, setSlaveInputPipe, setState
 
Methods inherited from class ncsa.d2k.core.modules.ExecModule
setExecutionManager
 
Methods inherited from class ncsa.d2k.core.modules.ConfigurableModule
addAddPortListener, addInput, addInputTrigger, addOutput, addOutputTrigger, getAddedInputTypes, getAddedOutputTypes, getAddPortListeners, insertInput, insertOutput, removeAddPortListener, removeInput, removeInputTrigger, removeOutput, removeOutputTrigger, setAddedInputTypes, setInputType, setOutputType
 
Methods inherited from class ncsa.d2k.core.modules.RootModule
activateTriggers, beginExecution, canRun, clone, debug, debug, disconnectInputPipe, disconnectInputTriggers, disconnectOutputPipe, disconnectOutputTriggers, endExecution, error, error, fatal, fatal, fetchInputs, getAlias, getChildIndex, getChildMux, getChildren, getExecutionManager, getFile, getFlags, getFullPipeManager, getGuiComponent, getImage, getInputPipes, getInputPipeSize, getInputTriggers, getNumInputs, getNumOutputs, getOutputCounts, getOutputPipes, getOutputPipeSize, getOutputTriggers, getParentIndex, getParentMux, getParents, getPipesFull, getPriority, getPropertiesDescriptions, getPropertyEditor, getResource, getRootName, getState, info, info, isAborting, isHead, isInputPipeConnected, isOutputPipeConnected, isReady, pullInput, pushOutput, resetInputs, setAlias, setBlocked, setD2KModulesLoggingLevel, setFullPipeManager, setIdle, setInputPipe, setLogLevel, setModuleStatistics, setOutputCounts, setOutputPipe, setPipesFull, setReady, setResource, setThePriority, setWorking, trigger, triggersActivated, warn, warn
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZeroCrossings

public ZeroCrossings()
Method Detail

getModuleName

public java.lang.String getModuleName()
Returns the name of the module

Returns:
the module name

getModuleInfo

public java.lang.String getModuleInfo()
Returns information about the module

Returns:
Module information

getInputName

public java.lang.String getInputName(int i)
Returns a text name for the indicated input

Parameters:
i - the index of the input
Returns:
the name of the indexed input

getInputInfo

public java.lang.String getInputInfo(int i)
Returns a text description for the indicated input

Parameters:
i - the index of the input
Returns:
a text description of the indexed input

getInputTypes

public java.lang.String[] getInputTypes()
Returns an array of strings containing the Java data types of the input.

Returns:
the fully qualified java types for each of the inputs

getOutputName

public java.lang.String getOutputName(int i)
Returns a text name for the indicated output

Parameters:
i - the index of the output
Returns:
the name of the indexed output

getOutputInfo

public java.lang.String getOutputInfo(int i)
Returns a text description for the indicated output

Parameters:
i - the index of the output
Returns:
the text description for the indicated output

getOutputTypes

public java.lang.String[] getOutputTypes()
Returns an array of strings containing the Java data types of the outputs.

Returns:
the fully qualified java types for each of the outputs.

doit

public void doit()
Calculate the number of zero-crossings between adjecent elements in the inputted array.