Package ru.ewc.decita

Class ConstantLocator

java.lang.Object
ru.ewc.decita.ConstantLocator
All Implemented Interfaces:
Locator

public final class ConstantLocator extends Object implements Locator
I am a concrete Locator responsible for finding (creating instances of) Constant Fragments. It is useful for all kinds of comparisons, especially for the calculation of the Truth Table's Rules.
Since:
0.1
  • Constructor Details

    • ConstantLocator

      public ConstantLocator()
  • Method Details

    • fragmentBy

      public String fragmentBy(String fragment, ComputationContext context)
      Description copied from interface: Locator
      Determines the system's state - the value of a single property, described by its name.
      Specified by:
      fragmentBy in interface Locator
      Parameters:
      fragment - The String identifier of the required property.
      context - The ComputationContext to use in property retrieval.
      Returns:
      The value of the requested property as a String.