Class Dependency

java.lang.Object
com.aquima.interactions.rule.inference.Dependency
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GroupDependency, TypeDependency, ValueDependency

public abstract class Dependency extends Object implements Serializable
This class holds the information about a dependency of a rule. There are two types of dependencies:
  • Value dependency
    The dependency defines a relation to a specific attribute value. When the value of the attribute changes, the rule dependent on the value needs to be reevaluated.
  • Type dependency
    The dependency defines a relation to an entity type. When a change occurs on the type, for instance when a new entity is created or removed, the rule dependent on the type needs to be reevaluated.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

  • Method Details

    • getType

      protected DependencyType getType()
    • isValueDependency

      public boolean isValueDependency()
      This method returns a boolean indicating if the dependency is a dependency on a value.
      Returns:
      boolean indicating if the dependency is a dependency on a value.
    • isTypeDependency

      public boolean isTypeDependency()
      This method returns a boolean indicating if the dependency is a dependency on a type.
      Returns:
      boolean indicating if the dependency is a dependency on a type.