You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
values from a dictionary, containing the values and a cummulative distribution
82
82
function. A Generator implements two methods: "initialize", and "run". The
83
83
method "initialize", is called onece and as its name indicates is used to
@@ -177,11 +177,11 @@ So basically, given a schema specified using the json, DataSynth produces Schnap
177
177
178
178
```
179
179
person.oid = genids(10000);
180
-
f = init('org.dama.datasynth.generators.CDFGenerator', '/dicLocations.txt', 1, 5,' ');
180
+
f = init('org.dama.datasynth.generators.CumulativeDistributionGenerator', '/dicLocations.txt', 1, 5,' ');
181
181
rparams = union(person.oid);
182
182
person.country = map(f,rparams);
183
183
184
-
f = init('org.dama.datasynth.generators.CorrellationGenerator','/namesByCountry.txt', ' ');
184
+
f = init('org.dama.datasynth.generators.UniformCorrelationGenerator','/namesByCountry.txt', ' ');
185
185
rparams = union(person.oid, person.country);
186
186
person.name = map(f,rparams);
187
187
@@ -240,10 +240,10 @@ The Signature specifies that this solver is used to solve vertices of type Attri
240
240
signature : {
241
241
@A = Edge;
242
242
@A->source.name == @A->target.name;
243
-
@A.direction == 'undirected';
243
+
@A.edgeType == 'undirected';
244
244
}
245
245
```
246
-
This signature states that given a vertex in the dependency graph of type Edge, and this vertex source name equals vertex target name, and vertex's attribute direction equals 'undirected', then this solver can generate code to generate that vertex. The syntax "->X" specifies navigating an edge of name X (i.e. source, target, whatever) on the dependency graph, and ".Y" specifies the value of the property with name "Y". For instance, @A->source.name means that given the Edge vertex A, we go to the source attribute (person.oid in this case) and retrieve its name.
246
+
This signature states that given a vertex in the dependency graph of type Edge, and this vertex source name equals vertex target name, and vertex's attribute edgeType equals 'undirected', then this solver can generate code to generate that vertex. The syntax "->X" specifies navigating an edge of name X (i.e. source, target, whatever) on the dependency graph, and ".Y" specifies the value of the property with name "Y". For instance, @A->source.name means that given the Edge vertex A, we go to the source attribute (person.oid in this case) and retrieve its name.
247
247
248
248
The same syntax is used for the place holders within the snippet. The Solver instantiator just generates code by substitution the proper values obtained from the dependency graph.
0 commit comments