Class FWSimOutput

java.lang.Object
net.simplace.sim.io.output.FWSimOutput
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
FWSimCalibrationOutput

public class FWSimOutput extends Object implements Runnable
Author:
Andreas Enders
  • Field Details

  • Constructor Details

    • FWSimOutput

      public FWSimOutput(org.jdom2.Element aOutputElement, int aOrderNumber, FWSimVarMap aVarMap, FWSimProject.PROJECT_MODE aProjectMode)
      Constructor from output Element: format like
      Parameters:
      aOutputElement -
      aOrderNumber -
      aVarMap -
      aProjectMode -
    • FWSimOutput

      protected FWSimOutput(String aName, FWSimIOAdapter.FREQUENCE aFrequence, FWSimVarMap aVarMap, String aRule, String aResetRule)
      Constructor from output Element: format like
      Parameters:
      aName -
      aFrequence -
      aVarMap -
      aProjectMode -
      aRule -
      aResetRule -
  • Method Details

    • updateAdapter

      public void updateAdapter(FWSimInterface<?> aInterface, FWSimVarMap aVarMap)
      Parameters:
      aInterface -
      aVarMap -
    • initialize

      public void initialize(FWSimVarMap aVarMap)
      Parameters:
      aVarMap -
    • OUTPUT

      public void OUTPUT(LocalDateTime aCurrentDate, FWSimVarMap aVarMap, FWSimProject.PROJECT_MODE aCurrentProjectMode)
      Use this method to put output data to the output queue. The VarMap is filtered for the configuredO output fields and used accordingly
      Parameters:
      aCurrentDate -
      aVarMap -
      aCurrentProjectMode -
    • getName

      public String getName()
      Returns:
      the name
    • getFrequence

      public FWSimIOAdapter.FREQUENCE getFrequence()
      Returns:
      the frequency the Output is accessed
    • getOutputScript

      public JexlRuleScript getOutputScript()
      Returns:
      the rule
    • getResetScript

      public JexlRuleScript getResetScript()
      Returns:
      the rule
    • hasStatistics

      public boolean hasStatistics()
      Returns:
      if a statistics is populated
    • calculateStatistics

      public void calculateStatistics(String aSimulationID)
      calculate the statistics
      Parameters:
      aSimulationID -
    • removeSimulationCache

      public void removeSimulationCache(FWSimVarMap aVarMap)
      Parameters:
      aVarMap -
    • getProjectMode

      public FWSimProject.PROJECT_MODE getProjectMode()
      Returns:
      project mode
    • run

      public void run()
      runs writing of data for the attached adapter
      Specified by:
      run in interface Runnable
      See Also:
    • isWriting

      public boolean isWriting()
      Returns:
      if Output is still writing or not
    • finalize

      protected void finalize() throws Exception
      Overrides:
      finalize in class Object
      Throws:
      Exception
      See Also:
    • getAdapter

      public FWSimOutputAdapter getAdapter()
      Returns:
      the Adapter of the Output
    • toString

      public String toString()
      Overrides:
      toString in class Object