blog
Class OriginFunction

java.lang.Object
  extended by blog.Function
      extended by blog.OriginFunction

public class OriginFunction
extends Function

Represents a BLOG generating function.


Nested Class Summary
 
Nested classes/interfaces inherited from class blog.Function
Function.Sig
 
Constructor Summary
OriginFunction(java.lang.String fname, java.util.List arg_types, Type ret_type)
           
 
Method Summary
 Type getArgType()
          Returns the type of this OriginFunction's sole element.
 java.lang.Object getValueInContext(java.lang.Object[] args, EvalContext context, boolean stable)
          Returns the value of this function applied to the given tuple of arguments in the given context.
 
Methods inherited from class blog.Function
appliesTo, checkTypesAndScope, compile, domainIterator, domainIterator, getArgTypes, getCreationIndex, getDefaultValue, getName, getRetType, getSig, getValue, getValue, getValue, getValueSingleArg, isTimeIndexed, overlapsWith, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OriginFunction

public OriginFunction(java.lang.String fname,
                      java.util.List arg_types,
                      Type ret_type)
Parameters:
arg_types - List of size 1.
Method Detail

getArgType

public Type getArgType()
Returns the type of this OriginFunction's sole element.


getValueInContext

public java.lang.Object getValueInContext(java.lang.Object[] args,
                                          EvalContext context,
                                          boolean stable)
Description copied from class: Function
Returns the value of this function applied to the given tuple of arguments in the given context. If the partial world in the given context is not complete enough to determine the function value, this method returns null.

Specified by:
getValueInContext in class Function
stable - if true, the caller guarantees that the args array will not be modified