Class AbstractScriptSubsetter

java.lang.Object
edu.sc.seis.sod.subsetter.AbstractScriptSubsetter
All Implemented Interfaces:
SodElement, Subsetter
Direct Known Subclasses:
AvailableDataScript, ChannelScript, EventChannelScript, EventStationScript, EventVectorScript, NetworkScript, OriginScript, RequestGeneratorScript, RequestScript, SacHeaderScript, SeismogramScript, StationScript, VectorAvailableDataScript, VectorRequestGeneratorScript, VectorRequestScript, VectorScript

public class AbstractScriptSubsetter
extends java.lang.Object
implements Subsetter
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected org.w3c.dom.Element config  
    protected javax.script.ScriptEngine engine  
    protected static javax.script.ScriptEngineManager factory  
    protected java.lang.String script  
    protected java.lang.String scriptType  
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractScriptSubsetter​(org.w3c.dom.Element config)  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String cleanScript​(java.lang.String script)  
    protected StringTree eval()  
    static java.lang.String formatForJythonSysPath​(java.lang.Class c, java.lang.String jarDir)  
    protected java.lang.Object preeval()  
    protected java.lang.Object pullResult​(java.lang.Object result)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • script

      protected java.lang.String script
    • config

      protected org.w3c.dom.Element config
    • scriptType

      protected java.lang.String scriptType
    • engine

      protected javax.script.ScriptEngine engine
    • factory

      protected static javax.script.ScriptEngineManager factory
  • Constructor Details

  • Method Details

    • preeval

      protected java.lang.Object preeval() throws java.lang.Exception
      Throws:
      java.lang.Exception
    • pullResult

      protected java.lang.Object pullResult​(java.lang.Object result) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • eval

      protected StringTree eval() throws java.lang.Exception
      Throws:
      java.lang.Exception
    • cleanScript

      public static java.lang.String cleanScript​(java.lang.String script)
    • formatForJythonSysPath

      public static java.lang.String formatForJythonSysPath​(java.lang.Class c, java.lang.String jarDir)