|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.BuiltInFunctions
public class BuiltInFunctions
Class with static methods and constants for built-in non-random functions (including built-in constants). This class cannot be instantiated.
Field Summary | |
---|---|
static NonRandomFunction |
CONCAT
A function on strings x , y that returns
the concatenation of x and y . |
static NonRandomFunction |
EPOCH
Constant that denotes the timestep 0. |
static NonRandomFunction |
GEQ
The GreaterThanOrEqual relation on type Real (and its subtypes). |
static NonRandomFunction |
GT
The GreaterThan relation on type Real (and its subtypes) |
static NonRandomFunction |
IS_EMPTY_STRING
A function that takes a string and returns true if the string is empty. |
static NonRandomFunction |
LEQ
The LessThanOrEqual relation on type Real (and its subtypes). |
static NonRandomFunction |
LT
The LessThan relation on type Real (and its subtypes). |
static NonRandomFunction |
MINUS
The function on integers x |
static NonRandomFunction |
NON_NEG_PART
A function from integers to natural numbers that yields the non-negative part of the given integer x : that is,
min(x, 0) . |
static NonRandomFunction |
NULL
Constant that always denotes Model.NULL. |
static NonRandomFunction |
ONE
Constant that denotes the natural number 1. |
static NonRandomFunction |
PLUS
The function on integers x |
static NonRandomFunction |
PRED
The predecessor function on natural numbers. |
static NonRandomFunction |
PREV
The predecessor function on timesteps. |
static NonRandomFunction |
RMINUS
The function on reals x |
static NonRandomFunction |
RPLUS
The function on reals x |
static NonRandomFunction |
SUCC
The successor function on natural numbers. |
static NonRandomFunction |
VMINUS
A function on RVectors x , y that returns
the element-wise difference of x and y . |
static NonRandomFunction |
VPLUS
A function on RVectors x , y that returns
the element-wise sum of x and y . |
static NonRandomFunction |
ZERO
Constant that denotes the natural number 0. |
Method Summary | |
---|---|
static java.util.List |
getFuncsWithName(java.lang.String name)
Returns the built-in functions (and constants) with the given name. |
static NonRandomFunction |
getFunction(Function.Sig sig)
Returns the built-in function (or constant) with the given signature. |
static NonRandomFunction |
getLiteral(java.lang.String name,
Type type,
java.lang.Object value)
Returns the built-in constant symbol with the given name, which has the given return type and denotes the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final NonRandomFunction NULL
public static final NonRandomFunction ZERO
public static final NonRandomFunction ONE
public static final NonRandomFunction EPOCH
public static NonRandomFunction LT
public static NonRandomFunction LEQ
public static NonRandomFunction GT
public static NonRandomFunction GEQ
public static NonRandomFunction SUCC
public static NonRandomFunction PRED
public static NonRandomFunction NON_NEG_PART
x
: that is,
min(x, 0)
.
public static NonRandomFunction PLUS
x, y
that returns
x + y.
public static NonRandomFunction MINUS
x, y
that returns
x - y.
public static NonRandomFunction RPLUS
x, y
that returns
x + y.
public static NonRandomFunction RMINUS
x, y
that returns
x - y.
public static NonRandomFunction PREV
public static NonRandomFunction CONCAT
x
, y
that returns
the concatenation of x
and y
.
public static NonRandomFunction VPLUS
x
, y
that returns
the element-wise sum of x
and y
.
public static NonRandomFunction VMINUS
x
, y
that returns
the element-wise difference of x
and y
.
public static NonRandomFunction IS_EMPTY_STRING
Method Detail |
---|
public static NonRandomFunction getFunction(Function.Sig sig)
public static NonRandomFunction getLiteral(java.lang.String name, Type type, java.lang.Object value)
public static java.util.List getFuncsWithName(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |