Class ReferenceValuesFinder

java.lang.Object
net.ssehub.easy.varModel.model.filter.ReferenceValuesFinder

public class ReferenceValuesFinder extends Object
Class for finding relevant AbstractVariables matching to the data type of a given Reference.
Author:
El-Sharkawy
  • Constructor Details

    • ReferenceValuesFinder

      public ReferenceValuesFinder()
  • Method Details

    • findPossibleValues

      public static List<AbstractVariable> findPossibleValues(Project project, Reference refType)
      Searches inside the whole Project for AbstractVariables, which can be referenced by IDecisionVariables of the given Reference type.
      Parameters:
      project - The project which should contain all relevant possible variable, which can be used to configure the given Reference variable.
      refType - A given Reference, for which relevant/possible AbstractVariables should be found.
      Returns:
      A list of all relevant AbstractVariable found in the given project with the correct data type. This list is maybe empty, but not null.
    • findPossibleValues

      public static List<AbstractVariable> findPossibleValues(Project project, IDatatype type)
      Searches inside the whole Project for AbstractVariables, which are of the specified type.
      Parameters:
      project - The project which should contain all relevant possible variable, which can be used to configure the given Reference variable.
      type - A given type for which relevant/possible AbstractVariables should be found.
      Returns:
      A list of all relevant AbstractVariable found in the given project with the correct data type. This list is maybe empty, but not null.