public class Prod
extends org.nlogo.api.DefaultReporter
Constructor and Description |
---|
Prod() |
Modifier and Type | Method and Description |
---|---|
org.nlogo.api.Syntax |
getSyntax()
This method tells Netlogo the appropriate syntax of the primitive.
|
FuzzySet |
prodding(FuzzySet f,
double c)
Checks what kind of fuzzy set is passed and execute the correct action.
|
FuzzySet |
prodDiscrete(PointSet p,
double c)
Apply prod to a discrete set.
|
FuzzySet |
prodPiecewise(PointSet p,
double c)
Apply prod to a piecewise linear set.
|
java.lang.Object |
report(org.nlogo.api.Argument[] arg0,
org.nlogo.api.Context arg1)
This method respond to the call from Netlogo and returns the prodded fuzzy
set.
|
public org.nlogo.api.Syntax getSyntax()
getSyntax
in interface org.nlogo.api.Primitive
getSyntax
in class org.nlogo.api.DefaultReporter
public java.lang.Object report(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 list.arg1
- Context of Netlogo when the call was done.org.nlogo.api.ExtensionException
org.nlogo.api.LogoException
public FuzzySet prodding(FuzzySet f, double c)
f
- The fuzzy set to prodded.c
- The number to prod the fuzzy set.public FuzzySet prodPiecewise(PointSet p, double c)
p
- The piecewise linear set.c
- The number to prod the set.