public class Relation
extends java.lang.Object
| Constructor and Description |
|---|
Relation()
Constructs an empty relation.
|
Relation(int strength)
Constructs a relation with a given strength.
|
Relation(int strength,
java.util.ArrayList<Parameter> params)
Constructs a relation with a given strength and a group of parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(Parameter param)
Adds a parameter into this relation.
|
boolean |
contains(java.util.ArrayList<Parameter> group)
Checks if this relation contains a group of parameters.
|
boolean |
contains(Relation r)
Deprecated.
|
java.lang.String |
getParamNames()
Returns a string consisting of the names of the parameters in
this relation.
|
java.util.ArrayList<Parameter> |
getParams()
Returns the list of parameters in this relation.
|
int |
getStrength()
Gets the strength of this relation.
|
void |
setParams(java.util.ArrayList<Parameter> params)
Sets the list of parameters for this relation.
|
void |
setStrength(int strength)
Sets the strength of this relation.
|
java.lang.String |
toString()
Returns a string representation of this relation.
|
public Relation()
public Relation(int strength)
strength - public Relation(int strength,
java.util.ArrayList<Parameter> params)
strength - the strength of this relationparams - the parameters involved in this relationpublic void setStrength(int strength)
strength - the strength to be setpublic int getStrength()
public void addParam(Parameter param)
param - public java.util.ArrayList<Parameter> getParams()
public void setParams(java.util.ArrayList<Parameter> params)
params - the list of parameters to be setpublic java.lang.String getParamNames()
public boolean contains(java.util.ArrayList<Parameter> group)
group - a group of parameterspublic boolean contains(Relation r)
r - the other relationpublic java.lang.String toString()
toString in class java.lang.Object