This little Documentation gives an overview of some of the concepts and data structures of the AkuaJs library.
Dimension
require(["core/CoreBundle"], function() {
dMonth = D("Month");
console.log(dMonth.toString())
});
Element
require(["core/CoreBundle"], function() {
eAugust = E(D("Month"), "August");
console.log(eAugust.toString());
});
Domain
require(["core/CoreBundle"], function() {
domain = Domain([D("Month"),D("City")]);
});
Tuple
require(["core/CoreBundle"], function() {
tuple = T([E(D("Month"), "July"), E(D("City"), "New York")],440);
console.log(tuple.ToAkuaDsl());
console.log(tuple.Domain());
});
SameDomainTupleList
require(["core/CoreBundle"], function() {
sdtl = SDTL([
T([E(D("Month"), "July"), E(D("City"), "New York")],440)
,T([E(D("Month"), "August"), E(D("City"), "New York")],77)
]);
console.log(sdtl.ToAkuaDsl());
});
And operation
require(["core/CoreBundle"], function() {
tuple1 = T([E(D("Month"), "July"), E(D("City"), "New York")]);
tuple2 = T([E(D("Product"), "Car")]);
tuple3 = tuple1.And(tuple2);
console.log(tuple3.ToAkuaDsl());
});