edu.sc.seis.sod.subsetter.channel
Class ChannelScript

java.lang.Object
  extended by edu.sc.seis.sod.subsetter.AbstractScriptSubsetter
      extended by edu.sc.seis.sod.subsetter.channel.ChannelScript
All Implemented Interfaces:
SodElement, ChannelSubsetter, Subsetter

public class ChannelScript
extends AbstractScriptSubsetter
implements ChannelSubsetter


Field Summary
 
Fields inherited from class edu.sc.seis.sod.subsetter.AbstractScriptSubsetter
config, engine, factory, script, scriptType
 
Constructor Summary
ChannelScript(org.w3c.dom.Element config)
           
 
Method Summary
 StringTree accept(ChannelImpl channel, NetworkSource network)
           
 StringTree runScript(VelocityChannel channel, VelocityNetworkSource networkSource)
          Run the script with the arguments as predefined variables.
 
Methods inherited from class edu.sc.seis.sod.subsetter.AbstractScriptSubsetter
cleanScript, eval, preeval, pullResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelScript

public ChannelScript(org.w3c.dom.Element config)
Method Detail

accept

public StringTree accept(ChannelImpl channel,
                         NetworkSource network)
                  throws java.lang.Exception
Specified by:
accept in interface ChannelSubsetter
Throws:
java.lang.Exception

runScript

public StringTree runScript(VelocityChannel channel,
                            VelocityNetworkSource networkSource)
                     throws java.lang.Exception
Run the script with the arguments as predefined variables.

Throws:
java.lang.Exception