jcolibri.extensions.textual.IE.representation.info
Class WeightedRelation

java.lang.Object
  extended by jcolibri.extensions.textual.IE.representation.info.WeightedRelation

public class WeightedRelation
extends java.lang.Object

This class represents a weighted relation between two tokens.

First version developed at: Robert Gordon University - Aberdeen & Facultad Informática, Universidad Complutense de Madrid (GAIA)

Version:
2.0
Author:
Juan Antonio Recio García

Constructor Summary
WeightedRelation(Token origin, Token destination, double weight)
          Constructor
 
Method Summary
 Token getDestination()
          Returns the destination token.
 Token getOrigin()
          Returns the origin token.
 double getWeight()
          Returns the relation weight.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WeightedRelation

public WeightedRelation(Token origin,
                        Token destination,
                        double weight)
Constructor

Parameters:
origin - Origin Token
destination - Destination Token
weight - Relation weight [0..1]
Method Detail

getOrigin

public Token getOrigin()
Returns the origin token.


getDestination

public Token getDestination()
Returns the destination token.


getWeight

public double getWeight()
Returns the relation weight.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es