Difference between revisions of "Functions"

From Developer Documents
Jump to navigation Jump to search
 
Line 14: Line 14:
 
* We have a relation '''HasType''' (?) Value -> String that specifies the SCL type of the value
 
* We have a relation '''HasType''' (?) Value -> String that specifies the SCL type of the value
 
* Operations are functions that return an object implemeting '''WriteResult'''.
 
* Operations are functions that return an object implemeting '''WriteResult'''.
 +
 +
[[Category: Database Development]]

Latest revision as of 22:15, 3 September 2011

Intro

This section deals with the following specifications

  • Specification of generic functions applicable in the Simantics framework
  • Specification of functions attached to types (methods)
  • Specification of functions with side-effects (operations or commands)
  • Automatically generated code based on semantic model about functions (stubs)

Specification

  • Functions are objects implementing the interface org.simantics.scl.runtime.function.Function.
  • We have a type Value (?) that can be adapted to an SCL value (in particular to a function).
  • We have a relation HasType (?) Value -> String that specifies the SCL type of the value
  • Operations are functions that return an object implemeting WriteResult.