org.scijava.sjep
Class Function

java.lang.Object
  extended by org.scijava.sjep.AbstractToken
      extended by org.scijava.sjep.Function
All Implemented Interfaces:
Token, Verb

public final class Function
extends AbstractToken
implements Verb

A token representing an instance of a mathematical function, which acts on a particular number of arguments.

A function maps a set of inputs to a particular output, according to an algorithm.

Author:
Curtis Rueden

Constructor Summary
Function(String name)
           
Function(String name, int arity)
           
 
Method Summary
 int getArity()
          1 for unary, 2 for binary, etc.
 void incArity()
           
 
Methods inherited from class org.scijava.sjep.AbstractToken
getToken, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.scijava.sjep.Token
getToken
 

Constructor Detail

Function

public Function(String name)

Function

public Function(String name,
                int arity)
Method Detail

incArity

public void incArity()

getArity

public int getArity()
Description copied from interface: Verb
1 for unary, 2 for binary, etc.

Specified by:
getArity in interface Verb


Copyright © 2015 SciJava. All rights reserved.