public class Relation
extends java.lang.Object
Constructor and Description |
---|
Relation(java.lang.String roleName,
Individual ind1,
Individual ind2,
Degree degree) |
Modifier and Type | Method and Description |
---|---|
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 |
getNameWithoutDegree()
Gets a printable name of the role assertion without the lower bound.
|
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()
Gets the name of the relation.
|
public Relation(java.lang.String roleName, Individual ind1, Individual ind2, Degree degree)
public Individual getSubjectIndividual()
public Individual getObjectIndividual()
public void setObjectIndividual(Individual ind)
ind
- Object individual.public java.lang.String getRoleName()
public Degree getDegree()
public java.lang.String getNameWithoutDegree()
public java.lang.String toString()
toString
in class java.lang.Object