edu.illinois.cs.cogcomp.lbj.coref.ir.relations
Class Relation

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.ir.relations.Relation
All Implemented Interfaces:
java.io.Serializable

public class Relation
extends java.lang.Object
implements java.io.Serializable

Represents a relation between entities, appearing in a document.

Author:
Eric Bengtson
See Also:
Serialized Form

Field Summary
private  RelationEntityArgument m_a1
           
private  RelationEntityArgument m_a2
           
private  java.lang.String m_id
           
private  RelationMention m_mention
           
private  java.lang.String m_subType
           
private  java.lang.String m_type
           
private static long serialVersionUID
           
 
Constructor Summary
Relation(java.lang.String id, java.lang.String type, java.lang.String subType, RelationEntityArgument entArg1, RelationEntityArgument entArg2, RelationMention m)
          Constructs a relation.
 
Method Summary
 RelationEntityArgument getA1()
          Gets the first entity argument.
 RelationEntityArgument getA2()
          Gets the second relation argument.
 java.lang.String getID()
          Gets the relation ID.
 RelationMention getMention()
          Gets the relation mention.
static long getSerialVersionUID()
          Gets the serialization version UID.
 java.lang.String getSubtype()
          Gets the relation subtype.
 java.lang.String getType()
          Gets the relation type.
 java.lang.String toString()
          Constructs a string representation of this relation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

m_id

private java.lang.String m_id

m_type

private java.lang.String m_type

m_subType

private java.lang.String m_subType

m_a1

private RelationEntityArgument m_a1

m_a2

private RelationEntityArgument m_a2

m_mention

private RelationMention m_mention
Constructor Detail

Relation

public Relation(java.lang.String id,
                java.lang.String type,
                java.lang.String subType,
                RelationEntityArgument entArg1,
                RelationEntityArgument entArg2,
                RelationMention m)
Constructs a relation.

Parameters:
id - The relation ID.
type - The relation type.
subType - The relation subtype.
entArg1 - The first argument of the relation, representing an entity.
entArg2 - The second argument of the relation, representing an entity.
m - The relation mention.
Method Detail

toString

public java.lang.String toString()
Constructs a string representation of this relation.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the relation.

getSerialVersionUID

public static long getSerialVersionUID()
Gets the serialization version UID.

Returns:
The serialization version UID.

getID

public java.lang.String getID()
Gets the relation ID.

Returns:
The relation ID.

getType

public java.lang.String getType()
Gets the relation type.

Returns:
The relation type.

getSubtype

public java.lang.String getSubtype()
Gets the relation subtype.

Returns:
The relation subtype.

getMention

public RelationMention getMention()
Gets the relation mention.

Returns:
The relation mention.

getA1

public RelationEntityArgument getA1()
Gets the first entity argument.

Returns:
The first entity argument.

getA2

public RelationEntityArgument getA2()
Gets the second relation argument.

Returns:
The second relation argument, which may be null.