public abstract class FuzzySet
extends java.lang.Object
implements org.nlogo.api.ExtensionObject
Modifier and Type | Field and Description |
---|---|
private boolean |
continuous
True if the set is continuous(defined in all points of his universe),
false if not.
|
private java.lang.String |
description
Name of the fuzzy set.
|
private java.lang.String |
label
Name that the user gives to the set.
|
private double[] |
universe
The universe of the set.
|
Constructor and Description |
---|
FuzzySet(java.lang.String description,
boolean continuous,
java.lang.String label,
double[] universe)
Creates a new fuzzy set.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dump(boolean arg0,
boolean arg1,
boolean arg2)
This method is used by Netlogo when a variable with this object is
called.
|
abstract double |
evaluate(double d)
Evaluate a number in the fuzzy set.
|
abstract double |
evaluate(FuzzySet f)
Evaluate a fuzzy set in this fuzzy set.
|
java.lang.String |
getDescription() |
java.lang.String |
getExtensionName()
String identifying the extension.
|
java.lang.String |
getLabel() |
abstract java.lang.String |
getNLTypeName()
String identifying the object.
|
abstract java.util.List |
getParameters() |
double[] |
getUniverse() |
boolean |
isContinuous() |
boolean |
recursivelyEqual(java.lang.Object arg0) |
void |
setDescription(java.lang.String description)
Sets a description for the set.
|
void |
setLabel(java.lang.String label)
sets a new label for the set.
|
private java.lang.String description
private java.lang.String label
private boolean continuous
private double[] universe
public FuzzySet(java.lang.String description, boolean continuous, java.lang.String label, double[] universe)
description
- The description of the set.continuous
- The continuity of the set.label
- A name for the set.universe
- The universe of the set.public abstract double evaluate(double d)
d
- The number to evaluate.public abstract double evaluate(FuzzySet f)
f
- The fuzzy set to evaluate.public abstract java.util.List getParameters()
public java.lang.String dump(boolean arg0, boolean arg1, boolean arg2)
dump
in interface org.nlogo.api.ExtensionObject
public java.lang.String getExtensionName()
getExtensionName
in interface org.nlogo.api.ExtensionObject
public abstract java.lang.String getNLTypeName()
getNLTypeName
in interface org.nlogo.api.ExtensionObject
public boolean recursivelyEqual(java.lang.Object arg0)
recursivelyEqual
in interface org.nlogo.api.ExtensionObject
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the new description of the set.public double[] getUniverse()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- the new label.public boolean isContinuous()