Package edu.fiu.jtlex

Class Rel

java.lang.Object
edu.fiu.jtlex.Rel
All Implemented Interfaces:
IRel

public class Rel extends Object implements IRel
Author:
arada002, Pablo Maldonado
  • Constructor Details

    • Rel

      public Rel​(int id, IRel.Type type, int startNodeId, int endNodeId, IRel.EnhancedPlusPlusDependency enhancedPlusPlusDependenc, IRel.SemanticCategory semanticCategory, IRel.SyntacticCategory syntacticCategory, IRel.RelType relType)
      Parameters:
      id - id from Anansi, can't be negative
      type - Relationship between 2 nodes
      startNodeId - first node of relationship
      endNodeId - second node of relationship
      semanticCategory - Semantic Category
      syntacticCategory - Syntactic Category
      relType - temporal relation holding between the entities
  • Method Details

    • getId

      public int getId()
      Description copied from interface: IRel
      Each term has to be identified by a unique ID number. Returns the id of the term. value must exist, and must not be negative
      Specified by:
      getId in interface IRel
      Returns:
      id integer
    • getType

      public IRel.Type getType()
      Description copied from interface: IRel
      Returns the Type of the relationship. value NOT OPTIONAL
      Specified by:
      getType in interface IRel
      Returns:
      Type Enum
    • getStartNodeId

      public int getStartNodeId()
      Description copied from interface: IRel
      Returns the ID of the start node of the relationship. value NOT OPTIONAL
      Specified by:
      getStartNodeId in interface IRel
      Returns:
      int startNodeId
    • getEndNodeId

      public int getEndNodeId()
      Description copied from interface: IRel
      Returns the ID of the end node of the relationship. value NOT OPTIONAL
      Specified by:
      getEndNodeId in interface IRel
      Returns:
      int EndNodeId
    • getSemanticCategory

      public IRel.SemanticCategory getSemanticCategory()
      Description copied from interface: IRel
      Returns the Semantic Category
      Specified by:
      getSemanticCategory in interface IRel
      Returns:
      Enum SemanticCategory
    • getSyntacticCategory

      public IRel.SyntacticCategory getSyntacticCategory()
      Description copied from interface: IRel
      Returns the Syntactic Category
      Specified by:
      getSyntacticCategory in interface IRel
      Returns:
      Enum SyntacticCategory
    • getEnhancedPlusPlusDependency

      public IRel.EnhancedPlusPlusDependency getEnhancedPlusPlusDependency()
      Description copied from interface: IRel
      Returns for the EnhancedPlusPlusDependency
      Specified by:
      getEnhancedPlusPlusDependency in interface IRel
      Returns:
      EnhancedPlusPlusDependency
    • getRelType

      public IRel.RelType getRelType()
      Description copied from interface: IRel
      Returns the temporal relation.
      Specified by:
      getRelType in interface IRel
      Returns:
      RelType enum