Package edu.fiu.jtlex
Class Rel
java.lang.Object
edu.fiu.jtlex.Rel
- All Implemented Interfaces:
IRel
- Author:
- arada002, Pablo Maldonado
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.fiu.jtlex.IRel
IRel.EnhancedPlusPlusDependency, IRel.RelType, IRel.SemanticCategory, IRel.SyntacticCategory, IRel.Type -
Constructor Summary
ConstructorsConstructorDescriptionRel(int id, IRel.Type type, int startNodeId, int endNodeId, IRel.EnhancedPlusPlusDependency enhancedPlusPlusDependenc, IRel.SemanticCategory semanticCategory, IRel.SyntacticCategory syntacticCategory, IRel.RelType relType) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the ID of the end node of the relationship.Returns for the EnhancedPlusPlusDependencyintgetId()Each term has to be identified by a unique ID number.Returns the temporal relation.Returns the Semantic CategoryintReturns the ID of the start node of the relationship.Returns the Syntactic CategorygetType()Returns the Type of the relationship.
-
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 negativetype- Relationship between 2 nodesstartNodeId- first node of relationshipendNodeId- second node of relationshipsemanticCategory- Semantic CategorysyntacticCategory- Syntactic CategoryrelType- temporal relation holding between the entities
-
-
Method Details
-
getId
public int getId()Description copied from interface:IRelEach term has to be identified by a unique ID number. Returns the id of the term. value must exist, and must not be negative -
getType
Description copied from interface:IRelReturns the Type of the relationship. value NOT OPTIONAL -
getStartNodeId
public int getStartNodeId()Description copied from interface:IRelReturns the ID of the start node of the relationship. value NOT OPTIONAL- Specified by:
getStartNodeIdin interfaceIRel- Returns:
- int startNodeId
-
getEndNodeId
public int getEndNodeId()Description copied from interface:IRelReturns the ID of the end node of the relationship. value NOT OPTIONAL- Specified by:
getEndNodeIdin interfaceIRel- Returns:
- int EndNodeId
-
getSemanticCategory
Description copied from interface:IRelReturns the Semantic Category- Specified by:
getSemanticCategoryin interfaceIRel- Returns:
- Enum SemanticCategory
-
getSyntacticCategory
Description copied from interface:IRelReturns the Syntactic Category- Specified by:
getSyntacticCategoryin interfaceIRel- Returns:
- Enum SyntacticCategory
-
getEnhancedPlusPlusDependency
Description copied from interface:IRelReturns for the EnhancedPlusPlusDependency- Specified by:
getEnhancedPlusPlusDependencyin interfaceIRel- Returns:
- EnhancedPlusPlusDependency
-
getRelType
Description copied from interface:IRelReturns the temporal relation.- Specified by:
getRelTypein interfaceIRel- Returns:
- RelType enum
-