Class SeedParametricAnalysis

java.lang.Object
common.definitions.parametric.ParametricAnalysisDefinition
common.definitions.parametric.SeedParametricAnalysis
All Implemented Interfaces:
ParametricAnalysis

public class SeedParametricAnalysis extends ParametricAnalysisDefinition

Title: SeedParametricAnalysis

Description: This class is used to describe a parametric analysis where the varied parameter is the seed of simulation. It may be used to have several results of the same simulation.

Author:
Francesco D'Aquino Date: 26-feb-2006 Time: 11.11.49
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      public String getType()
      Gets the type of parametric analysis
      Specified by:
      getType in class ParametricAnalysisDefinition
      Returns:
      the type of parametric analysis
    • changeModel

      public void changeModel(int step)
      Changes the model preparing it for the next step
      Specified by:
      changeModel in class ParametricAnalysisDefinition
    • searchForAvailableSteps

      public int searchForAvailableSteps()
      Gets the maximum number of steps compatible with the model definition and the type of parametric analysis and in some implementation of this class initializes the validGlobalPopulationSizes Vector, containing the values that the parameter will assume.
      Specified by:
      searchForAvailableSteps in class ParametricAnalysisDefinition
      Returns:
      the maximum number of steps
    • createValuesSet

      public void createValuesSet()
      Finds the set of possible values of the population on which the simulation may be iterated on.
      Specified by:
      createValuesSet in class ParametricAnalysisDefinition
    • restoreOriginalValues

      public void restoreOriginalValues()
      Restore the original values of the parameter
      Specified by:
      restoreOriginalValues in class ParametricAnalysisDefinition
    • checkCorrectness

      public int checkCorrectness(boolean autocorrect)
      Checks if the PA model is still coherent with simulation model definition. If the autocorrect variable is set to true, if the PA model is no more valid but it can be corrected it will be changed.
      Specified by:
      checkCorrectness in class ParametricAnalysisDefinition
      Parameters:
      autocorrect - if true the PA model will be autocorrected
      Returns:
      0 - If the PA model is still valid
      1 - If the PA model is no more valid, but it will be corrected
      2 - If the PA model can be no more used
    • getParameterValues

      public Vector<Number> getParameterValues()
      Returns the values assumed by the varying parameter
      Specified by:
      getParameterValues in class ParametricAnalysisDefinition
      Returns:
      a Vector containing the values assumed by the varying parameter
    • getProperties

      public Map<String,String> getProperties()
      Gets a Map containing for each property its value. The supported properties are defined as constants inside this class.
      Specified by:
      getProperties in class ParametricAnalysisDefinition
      Returns:
      a Map containing the value for each property
    • setProperty

      public void setProperty(String propertyName, String value)
      Sets the value for the specified property
      Specified by:
      setProperty in class ParametricAnalysisDefinition
      Parameters:
      propertyName - the name of the property to be set
      value - the value to be set
    • getReferenceClass

      public Object getReferenceClass()
      Not implemented
      Specified by:
      getReferenceClass in class ParametricAnalysisDefinition
      Returns:
      reference classKey
    • getReferenceClassName

      public String getReferenceClassName()
      Not implemented
      Specified by:
      getReferenceClassName in class ParametricAnalysisDefinition
      Returns:
      the name of the class