Functions and Methods - Gnorion/BizVR GitHub Wiki
Morphisms
A morphism maps from a set of inputs to a set of outputs
Functions and Methods are the tools you use to define the logic that process the data model Methods are defined in a data model and are either class or instance methods Functions are similar to class methods but are defined in libraries. In general functions that can be used across many different data types will be defined in reusable libraries that have no data model associated with them. Methods that are more related to the class will be defined as methods in that class. Instance methods of course are tightly bound to the class where they are defined
Examples
Expression | Description |
---|---|
X=INST.instanceMethod(B) |
INST is an instance of object/class |
X=SET.instanceMethod(B) |
SET could be an instance of a set or collection of objects |
X=function(A,B) |
function of two arguments that returns some value |
X=classMethod(A,B) |
class method with two arguments and one return value |
-
Methods (future feature)
Also see Index Of Functions