public class FuzzyPlot
extends org.nlogo.api.DefaultCommand
Constructor and Description |
---|
FuzzyPlot() |
Modifier and Type | Method and Description |
---|---|
void |
continuousPlot(org.nlogo.plot.Plot p,
FuzzySet f)
This method plots the continuous sets.
|
void |
discretePlot(org.nlogo.plot.Plot p,
DiscreteNumericSet f)
This method plots the discrete sets.
|
org.nlogo.api.Syntax |
getSyntax()
This method tells Netlogo the appropriate syntax of the primitive.
|
void |
perform(org.nlogo.api.Argument[] arg0,
org.nlogo.api.Context arg1)
This method respond to the call from Netlogo and perform the plot.
|
void |
piecewisePlot(org.nlogo.plot.Plot p,
PiecewiseLinearSet f)
This method plots the piecewise linear sets.
|
void |
setRanges(org.nlogo.plot.Plot p,
double[] universe)
This method set the ranges of the plot.
|
public org.nlogo.api.Syntax getSyntax()
getSyntax
in interface org.nlogo.api.Primitive
getSyntax
in class org.nlogo.api.DefaultCommand
public void perform(org.nlogo.api.Argument[] arg0, org.nlogo.api.Context arg1) throws org.nlogo.api.ExtensionException, org.nlogo.api.LogoException
arg0
- Arguments from Netlogo call, in this case a fuzzy set.arg1
- Context of Netlogo when the call was done.org.nlogo.api.ExtensionException
org.nlogo.api.LogoException
public void setRanges(org.nlogo.plot.Plot p, double[] universe)
p
- The plot where the set is drawn.universe
- The universe of the set.public void piecewisePlot(org.nlogo.plot.Plot p, PiecewiseLinearSet f)
p
- The plot where the set is drawn.f
- The piecewise linear set.public void continuousPlot(org.nlogo.plot.Plot p, FuzzySet f)
p
- The plot where the set is drawn.f
- The continuous set.public void discretePlot(org.nlogo.plot.Plot p, DiscreteNumericSet f)
p
- The plot where the set is drawn.f
- The discrete set.