Interface Rule

All Superinterfaces:
Element, org.eclipse.emf.ecore.EObject, IdentifiedElement, Member, org.eclipse.emf.common.notify.Notifier, Statement, VocabularyMember, VocabularyStatement
All Known Implementing Classes:
RuleImpl

public interface Rule extends VocabularyStatement
A representation of the model object 'Rule'. Rule is a [=member=] of a [=vocabulary=] that adds a new inference rule to the set supported natively by DL. A rule must specify a set of one or more antecedent [=predicates=] that forms a conjunction that infers, when it holds, a set of one or more consequent [=predicates=].

The following features are supported:

See Also:
Generated:
Model:
annotation="https://tabatkins.github.io/bikeshed heading='Vocabularies'"
  • Method Details

    • getRef

      Rule getRef()
      Returns the value of the 'Ref' reference. A ref to another rule
      Specified by:
      getRef in interface Member
      Returns:
      the value of the 'Ref' reference.
      See Also:
      Generated:
      Model:
    • setRef

      void setRef(Rule value)
      Sets the value of the 'Ref' reference.
      Parameters:
      value - the new value of the 'Ref' reference.
      See Also:
      Generated:
    • getAntecedent

      org.eclipse.emf.common.util.EList<Predicate> getAntecedent()
      Returns the value of the 'Antecedent' containment reference list. The list contents are of type Predicate. It is bidirectional and its opposite is 'Antecedent Rule'. The set of predicates that form the antecedent of this rule
      Returns:
      the value of the 'Antecedent' containment reference list.
      See Also:
      Generated:
      Model:
      opposite="antecedentRule" containment="true"
    • getConsequent

      org.eclipse.emf.common.util.EList<Predicate> getConsequent()
      Returns the value of the 'Consequent' containment reference list. The list contents are of type Predicate. It is bidirectional and its opposite is 'Consequent Rule'. The predicate that is the consequent of this rule
      Returns:
      the value of the 'Consequent' containment reference list.
      See Also:
      Generated:
      Model:
      opposite="consequentRule" containment="true"