test_class.declarator: dataFields1 = new DataField[]{
          new DataField("temperature","INTEGER",""),
          new DataField("speed","DOUBLE",""),
          new DataField("angle","INTEGER",""),
          new DataField("image","DOUBLE","")
      }
test_class.modifier: private static final
test_class.original_string: private static final DataField[] dataFields1 = new DataField[]{
          new DataField("temperature","INTEGER",""),
          new DataField("speed","DOUBLE",""),
          new DataField("angle","INTEGER",""),
          new DataField("image","DOUBLE","")
      };
test_class.type: DataField[]
test_class.var_name: dataFields1
test_class.declarator: dataFields2 = new DataField[]{
          new DataField("temperature","INTEGER",""),
          new DataField("speed","DOUBLE",""),
          new DataField("atm","DOUBLE","")
  
      }
test_class.modifier: private static final
test_class.original_string: private static final DataField[] dataFields2 = new DataField[]{
          new DataField("temperature","INTEGER",""),
          new DataField("speed","DOUBLE",""),
          new DataField("atm","DOUBLE","")
  
      };
test_class.type: DataField[]
test_class.var_name: dataFields2
test_class.declarator: data1 = new Serializable[] {
              23,
              2.34,
              -9,
              -4.5
      }
test_class.modifier: private static final
test_class.original_string: private static final Serializable[] data1 = new Serializable[] {
              23,
              2.34,
              -9,
              -4.5
      };
test_class.type: Serializable[]
test_class.var_name: data1
test_class.declarator: data2 = new Serializable[] {
              23,
              2.34,
              -4.5
      }
test_class.modifier: private static final
test_class.original_string: private static final Serializable[] data2 = new Serializable[] {
              23,
              2.34,
              -4.5
      };
test_class.type: Serializable[]
test_class.var_name: data2
test_class.file: modules/x-gsn/src/main/java/org/openiot/gsn/processor/TestScriptletProcessor.java
test_class.identifier: TestScriptletProcessor
test_case.body: @Test
      public void testCorrectProcessorParameters() {
          ScriptletProcessor processor = new ScriptletProcessor();
          TreeMap<String,String> parameters = new TreeMap<String,String>();
          boolean status = processor.initialize(dataFields1, parameters);
          assertFalse(status);
          //
          parameters = new TreeMap<String,String>();
          parameters.put("anyparam","println 'Hello World!';");
          status = processor.initialize(dataFields1, parameters);
          assertFalse(status);
          //
          parameters = new TreeMap<String,String>();
          parameters.put("scriptlet","println 'Hello World!';");
          status = processor.initialize(dataFields1, parameters);
          assertTrue(status);
          //
          parameters = new TreeMap<String,String>();
          parameters.put("scriplet-periodic","println 'Hello World!';");
          status = processor.initialize(dataFields1, parameters);
          assertFalse(status);
          //
          parameters = new TreeMap<String,String>();
          parameters.put("scriplet-periodic","println 'Hello World!';");
          parameters.put("period","2000");
          status = processor.initialize(dataFields1, parameters);
          assertTrue(status);
      }
test_case.class_method_signature: TestScriptletProcessor.testCorrectProcessorParameters()
test_case.full_signature: @Test public void testCorrectProcessorParameters()
test_case.identifier: testCorrectProcessorParameters
test_case.invocations: initialize assertFalse put initialize assertFalse put initialize assertTrue put initialize assertFalse put put initialize assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCorrectProcessorParameters()
focal_class.declarator: logger = Logger.getLogger(ScriptletProcessor.class)
focal_class.modifier: private static final transient
focal_class.original_string: private static final transient Logger logger = Logger.getLogger(ScriptletProcessor.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: PARAM_SCRIPTLET = "scriptlet"
focal_class.modifier: private static final
focal_class.original_string: private static final String PARAM_SCRIPTLET = "scriptlet";
focal_class.type: String
focal_class.var_name: PARAM_SCRIPTLET
focal_class.declarator: PARAM_SCRIPTLETPERIODIC = "scriplet-periodic"
focal_class.modifier: private static final
focal_class.original_string: private static final String PARAM_SCRIPTLETPERIODIC = "scriplet-periodic";
focal_class.type: String
focal_class.var_name: PARAM_SCRIPTLETPERIODIC
focal_class.declarator: PARAM_PERIOD = "period"
focal_class.modifier: private static final
focal_class.original_string: private static final String PARAM_PERIOD = "period";
focal_class.type: String
focal_class.var_name: PARAM_PERIOD
focal_class.declarator: PARAM_PERSITANT = "persistant"
focal_class.modifier: private static final
focal_class.original_string: private static final String PARAM_PERSITANT = "persistant";
focal_class.type: String
focal_class.var_name: PARAM_PERSITANT
focal_class.declarator: timer = null
focal_class.modifier: private
focal_class.original_string: private Timer timer = null;
focal_class.type: Timer
focal_class.var_name: timer
focal_class.declarator: scriptlet = null
focal_class.modifier: protected
focal_class.original_string: protected Script scriptlet = null;
focal_class.type: Script
focal_class.var_name: scriptlet
focal_class.declarator: scriptletPeriodic = null
focal_class.modifier: protected
focal_class.original_string: protected Script scriptletPeriodic = null;
focal_class.type: Script
focal_class.var_name: scriptletPeriodic
focal_class.declarator: context = new Binding()
focal_class.modifier: protected final
focal_class.original_string: protected final Binding context = new Binding();
focal_class.type: Binding
focal_class.var_name: context
focal_class.declarator: outputStructure = null
focal_class.modifier: protected
focal_class.original_string: protected DataField[] outputStructure = null;
focal_class.type: DataField[]
focal_class.var_name: outputStructure
focal_class.declarator: period = -1
focal_class.modifier: private
focal_class.original_string: private long period = -1;
focal_class.type: long
focal_class.var_name: period
focal_class.declarator: persistant = true
focal_class.modifier: private
focal_class.original_string: private boolean persistant = true;
focal_class.type: boolean
focal_class.var_name: persistant
focal_class.declarator: periodicalTask = null
focal_class.modifier: private
focal_class.original_string: private TimerTask periodicalTask = null;
focal_class.type: TimerTask
focal_class.var_name: periodicalTask
focal_class.file: modules/x-gsn/src/main/java/org/openiot/gsn/processor/ScriptletProcessor.java
focal_class.identifier: ScriptletProcessor
focal_class.class_method_signature: ScriptletProcessor.initialize()
focal_class.full_signature: @Override public boolean initialize()
focal_class.identifier: initialize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean initialize()
focal_class.class_method_signature: ScriptletProcessor.dispose()
focal_class.full_signature: @Override public void dispose()
focal_class.identifier: dispose
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void dispose()
focal_class.class_method_signature: ScriptletProcessor.dataAvailable(String inputStreamName, StreamElement se)
focal_class.full_signature: @Override public void dataAvailable(String inputStreamName, StreamElement se)
focal_class.identifier: dataAvailable
focal_class.modifiers: @Override public
focal_class.parameters: (String inputStreamName, StreamElement se)
focal_class.return: void
focal_class.signature: void dataAvailable(String inputStreamName, StreamElement se)
focal_class.class_method_signature: ScriptletProcessor.initialize(DataField[] outputStructure, TreeMap<String, String> parameters)
focal_class.full_signature: protected boolean initialize(DataField[] outputStructure, TreeMap<String, String> parameters)
focal_class.identifier: initialize
focal_class.modifiers: protected
focal_class.parameters: (DataField[] outputStructure, TreeMap<String, String> parameters)
focal_class.return: boolean
focal_class.signature: boolean initialize(DataField[] outputStructure, TreeMap<String, String> parameters)
focal_class.class_method_signature: ScriptletProcessor.initScriptlet(String ps)
focal_class.full_signature: protected Script initScriptlet(String ps)
focal_class.identifier: initScriptlet
focal_class.modifiers: protected
focal_class.parameters: (String ps)
focal_class.return: Script
focal_class.signature: Script initScriptlet(String ps)
focal_class.class_method_signature: ScriptletProcessor.formatOutputStreamElement(Binding binding)
focal_class.full_signature: protected StreamElement formatOutputStreamElement(Binding binding)
focal_class.identifier: formatOutputStreamElement
focal_class.modifiers: protected
focal_class.parameters: (Binding binding)
focal_class.return: StreamElement
focal_class.signature: StreamElement formatOutputStreamElement(Binding binding)
focal_class.class_method_signature: ScriptletProcessor.updateContext(StreamElement se)
focal_class.full_signature: protected Binding updateContext(StreamElement se)
focal_class.identifier: updateContext
focal_class.modifiers: protected
focal_class.parameters: (StreamElement se)
focal_class.return: Binding
focal_class.signature: Binding updateContext(StreamElement se)
focal_class.class_method_signature: ScriptletProcessor.evaluate(Script script, StreamElement se, boolean persist)
focal_class.full_signature: protected void evaluate(Script script, StreamElement se, boolean persist)
focal_class.identifier: evaluate
focal_class.modifiers: protected
focal_class.parameters: (Script script, StreamElement se, boolean persist)
focal_class.return: void
focal_class.signature: void evaluate(Script script, StreamElement se, boolean persist)
focal_class.class_method_signature: ScriptletProcessor.getTimer()
focal_class.full_signature: private synchronized Timer getTimer()
focal_class.identifier: getTimer
focal_class.modifiers: private synchronized
focal_class.parameters: ()
focal_class.return: Timer
focal_class.signature: Timer getTimer()
focal_class.superclass: extends AbstractVirtualSensor
focal_method.body: @Override
      public boolean initialize() {
          return initialize(
                  getVirtualSensorConfiguration().getOutputStructure(),
                  getVirtualSensorConfiguration().getMainClassInitialParams()
          );
      }
focal_method.class_method_signature: ScriptletProcessor.initialize()
focal_method.full_signature: @Override public boolean initialize()
focal_method.identifier: initialize
focal_method.invocations: initialize getOutputStructure getVirtualSensorConfiguration getMainClassInitialParams getVirtualSensorConfiguration
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean initialize()