Interface Relation

All Superinterfaces:
Cloneable, Marking
All Known Implementing Classes:
RelationImpl, ScoredRelationImpl

public interface Relation extends Marking
Implements a Relation Object
  • Method Details

    • setRelation

      void setRelation(Meaning subject, Meaning predicate, Meaning object)
    • getRelation

      List<Meaning> getRelation()
    • getSubject

      Meaning getSubject()
    • getPredicate

      Meaning getPredicate()
    • getObject

      Meaning getObject()
    • equals

      static boolean equals(Relation r1, Relation r2)
      Returns true if the given Relation instances have equal subjects, predicates and objects.
      Parameters:
      r1 - an instance of Relation that should be checked for its equality with the second instance based on the semantics of the Relation interface.
      r2 - an instance of Relation that should be checked for its equality with the first instance based on the semantics of the Relation interface.
      Returns:
      true if the given Relation instances have equal subjects, predicates and objects, else false.