public class MaxOr
extends org.nlogo.api.DefaultReporter
Modifier and Type | Class and Description |
---|---|
class |
MaxOr.Max
Inner class that implements the command to perform in max operations.
|
Constructor and Description |
---|
MaxOr() |
Modifier and Type | Method and Description |
---|---|
org.nlogo.api.Syntax |
getSyntax()
This method tells Netlogo the appropriate syntax of the primitive.
|
private FuzzySet |
maxContinuous(org.nlogo.api.LogoList l)
Calculate the max of two or more continuous sets.
|
private FuzzySet |
maxDiscrete(org.nlogo.api.LogoList l)
Calculate the max of two or more discrete sets.
|
private FuzzySet |
maxPiecewise(org.nlogo.api.LogoList l)
Calculate the max of two or more piecewise sets.
|
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 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
private FuzzySet maxDiscrete(org.nlogo.api.LogoList l)
l
- The list with the fuzzy sets.private FuzzySet maxPiecewise(org.nlogo.api.LogoList l)
l
- The list with the fuzzy sets.private FuzzySet maxContinuous(org.nlogo.api.LogoList l)
l
- The list with the fuzzy sets.