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