fuzzydl
Class Relation

java.lang.Object
  extended by fuzzydl.Relation
Direct Known Subclasses:
NegativeRelation

public class Relation
extends java.lang.Object

Represents a role assertion of the form (object individual, role, lower bound for the degree) with respect to a subject individual.


Constructor Summary
Relation(java.lang.String roleName, Individual ind1, Individual ind2, Degree degree)
           
 
Method Summary
 Relation clone(java.lang.String role, Degree degree)
          Gets a relation (role, lower bound for the degree) for the subject individual.
 Degree getDegree()
          Returns the lower bound for the degree.
 java.lang.String getName()
           
 Individual getObjectIndividual()
          Gets the object individual.
 java.lang.String getRoleName()
          Gets the role name.
 Individual getSubjectIndividual()
          Gets the subject individual.
 void setObjectIndividual(Individual ind)
          Sets the object individual.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Relation

public Relation(java.lang.String roleName,
                Individual ind1,
                Individual ind2,
                Degree degree)
Method Detail

getSubjectIndividual

public Individual getSubjectIndividual()
Gets the subject individual.

Returns:
Subject individual.

getObjectIndividual

public Individual getObjectIndividual()
Gets the object individual.

Returns:
Object individual.

setObjectIndividual

public void setObjectIndividual(Individual ind)
Sets the object individual.

Parameters:
ind - Object individual.

getRoleName

public java.lang.String getRoleName()
Gets the role name.

Returns:
Role name.

getDegree

public Degree getDegree()
Returns the lower bound for the degree.

Returns:
Lower bound for the degree.

getName

public java.lang.String getName()

toString

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

clone

public Relation clone(java.lang.String role,
                      Degree degree)
Gets a relation (role, lower bound for the degree) for the subject individual.

Parameters:
role - An abstract role.
degree - A lower bound for the degree.
Returns:
A new relation (subject individual, role, lower bound for the degree).