scripts/channelClasses/standard/Nothing.java

/////////////////////////////////////////////////////////////////
// Do nothing the the input file: no baseline subtraction, filtering,
// reordering of channels, etc
//
// This code is compiled at runtime, but compilation can be tested by:
//    javac -cp build scripts/channelClasses/standard/Nothing.java
//    rm scripts/channelClasses/standard/Nothing.class 
/////////////////////////////////////////////////////////////////
package standard;

import java.io.*;
import java.util.*;

import generalClasses.*;
import recordingClasses.Recording;
import seriesClasses.*;
import channelClasses.ChannelScript;
import static channelClasses.Channel.*;

/////////////////////////////////////////////////////////////////
/** This script does nothing to the input file
 */
public class Nothing extends ChannelScript
{
    /** Recording instance to be operated on */
    Recording rec = null;

    ////////////////////////////////////////////////////////////////////
    /** Initialize instance by setting its parameters to default values.
     */
    public Nothing(Recording rec) {
        this.rec = rec;
    } // Nothing


    ////////////////////////////////////////////////////////////////////
    /** Update recording data by performing channel-oriented operations.
     * <p>Available modes in are EEG, EOG, REF, EMG, EDA, RES, ECG, EVE.
     */
    public void update() {
        // Process EEG, EMG, EOG

        // Process EDA,EVE: do nothing to them

        // Process RES,ECG,REF: subtract temporal mean

        // Update Recording object

    } // update

    ////////////////////////////////////////////////////////////////////
    /** Dump summary of this class or object
     * @return String representation of this object
     */
    public String toString() {
        String s = "<<<"+this.getClass().toString()+">>>\n";
        return s;
    } // toString
}

 


Validate HTML CSS Generated 2011-08-12T10:28:13+1000 Chris Rennie