This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
magik-demo:developer:class:core:programgenerator [2013/07/26 10:16] alex [makeEDB_Atom] |
magik-demo:developer:class:core:programgenerator [2017/07/06 15:24] (current) |
||
---|---|---|---|
Line 324: | Line 324: | ||
---- | ---- | ||
- | ==== makeEDB_Atom ==== | + | ==== make_a (String) ==== |
<code java> | <code java> | ||
- | static java.lang.String makeEDB_Atom (Atom atom, | + | static java.lang.String make_a (java.lang.String atom){ |
- | boolean isUnfolding) | + | |
</code> | </code> | ||
- | An internal auxiliary function, needed for conversion of atoms of the query to prototypical EDB. | + | This function takes an atom (in String format) and return the same one but with _a prefix to the name |
**Parameters:** | **Parameters:** | ||
* atom - atom that we want to convert | * atom - atom that we want to convert | ||
- | * isUnfolding - //TRUE// if unfolding needed, //FALSE// no unfolding | ||
**Return** | **Return** | ||
- | * String with the extensional database definition of the atom | + | * String of the atom with the _a prefix |
---- | ---- | ||
- | + | ==== makeDoubleVal ==== | |
- | ==== makeEDB_Atom ==== | + | |
<code java> | <code java> | ||
- | static java.lang.String makeEDB_Atom (Atom atom, | + | static java.lang.String makeDoubleVal (Term a, |
- | boolean isUnfolding) | + | Term b) |
</code> | </code> | ||
- | |||
- | An internal auxiliary function, needed for conversion of atoms of the query to prototypical EDB. | ||
**Parameters:** | **Parameters:** | ||
- | * atom - atom that we want to convert | + | * a - term |
- | * isUnfolding - //TRUE// if unfolding needed, //FALSE// no unfolding | + | * b - term |
**Return** | **Return** | ||
- | * String with the extensional database definition of the atom | + | * String |
---- | ---- | ||
- | ==== makeEDB_Atom ==== | + | ==== makeVal ==== |
<code java> | <code java> | ||
- | static java.lang.String makeEDB_Atom (Atom atom, | + | static java.lang.String makeVal (Term a, |
- | boolean isUnfolding) | + | Term b) |
</code> | </code> | ||
- | An internal auxiliary function, needed for conversion of atoms of the query to prototypical EDB. | + | Create the val line of code for two terms |
**Parameters:** | **Parameters:** | ||
- | * atom - atom that we want to convert | + | * a - term |
- | * isUnfolding - //TRUE// if unfolding needed, //FALSE// no unfolding | + | * b - associated term to assign to term a |
**Return** | **Return** | ||
- | * String with the extensional database definition of the atom | + | * Val rule for the term a assigned the value of the term b |
---- | ---- | ||
- | ==== makeEDB_Atom ==== | + | ==== createMaybe_V_vector_Y ==== |
<code java> | <code java> | ||
- | static java.lang.String makeEDB_Atom (Atom atom, | + | private static java.lang.StringBuilder createMaybe_V_vector_Y (boolean isUnfolding, |
- | boolean isUnfolding) | + | int keyTarget) |
</code> | </code> | ||
- | |||
- | An internal auxiliary function, needed for conversion of atoms of the query to prototypical EDB. | ||
**Parameters:** | **Parameters:** | ||
- | * atom - atom that we want to convert | ||
* isUnfolding - //TRUE// if unfolding needed, //FALSE// no unfolding | * isUnfolding - //TRUE// if unfolding needed, //FALSE// no unfolding | ||
+ | * keyTarget - key taget | ||
**Return** | **Return** | ||
- | * String with the extensional database definition of the atom | + | * String Builder |
---- | ---- | ||
+ | ==== create_vector_Y ==== | ||
+ | |||
+ | <code java> | ||
+ | private static StringBuilder create_vector_Y (int keyTarget) | ||
+ | </code> | ||
+ | |||
+ | **Parameters:** | ||
+ | |||
+ | * keyTarget - index of the key target | ||
+ | |||
+ | **Return** | ||
+ | * String Builder | ||
+ | [[magik-demo:developer:class:core:programgenerator|Back to Top]] | [[magik-demo:start|Back to Home Page]] |