WeightedSubListItem

WeightedSubListItem

A dictionary with weights. example:Content type: String (must be a valid filesystem path)
Name of the file containing the weights.Example file:

SIMPLE:
create terminators;
set types = (varchar);
set weights = 1;
add (".": 10);
add ("\;": 2);
add (" --": 1);
add (":": 1);


Complex:-- fields weights (aliases in parens)
-- =============
-- 1: FIPS code (fips) 1: uniform (uniform)
-- 2: county name (name) 2: population (population)
-- 3: state abreviation (st) 3: timezone weighting (tz)
-- 4: full state name (state) 4: in zone1 (tz90)
-- 5: ZIP prefix (zone) 5: in zone2 (tz9)
-- 6: gmt offset (gmt) 6 in zone3 (tz1)
--
create fips_county;
set types = (int, varchar, varchar, varchar, varchar, int);
set weights = 6;
set names = (fips, county, st, state, zone, gmt:uniform, population, tz, tz90, tz9, tz1);
add (47187,"Williamson County", "TN", "Tennesee", "3", -5:1, 117569, 1387, 1, 0, 0);
add (46137,"Ziebach County", "SD", "South Dakota", "5", -6:1, 2176, 1148, 1, 0, 0);
add (01127,"Walker County", "AL", "Alabama", "3", -6:1, 71027, 1148, 1, 0, 0);
add (45039,"Fairfield County", "SC", "South Carolina", "2", -5:1, 22394, 1387, 1, 0, 0);
add (39139,"Richland County", "OH", "Ohio", "4", -5:1, 127342, 1387, 1, 0, 0);
add (22041,"Franklin Parish", "LA", "Louisiana", "7", -6:1, 22163, 1148, 1, 0, 0);
add (29061,"Daviess County", "MO", "Mosourri", "6", -6:1, 7842, 1148, 1, 0, 0);

Attributes
Name Description Required Min Max Allowed Values
filename Content type: String (must be a valid filesystem path)
Name of the file containing the weights.Example file:

SIMPLE:
create terminators;
set types = (varchar);
set weights = 1;
add (".": 10);
add ("\;": 2);
add (" --": 1);
add (":": 1);


Complex:-- fields weights (aliases in parens)
-- =============
-- 1: FIPS code (fips) 1: uniform (uniform)
-- 2: county name (name) 2: population (population)
-- 3: state abreviation (st) 3: timezone weighting (tz)
-- 4: full state name (state) 4: in zone1 (tz90)
-- 5: ZIP prefix (zone) 5: in zone2 (tz9)
-- 6: gmt offset (gmt) 6 in zone3 (tz1)
--
create fips_county;
set types = (int, varchar, varchar, varchar, varchar, int);
set weights = 6;
set names = (fips, county, st, state, zone, gmt:uniform, population, tz, tz90, tz9, tz1);
add (47187,"Williamson County", "TN", "Tennesee", "3", -5:1, 117569, 1387, 1, 0, 0);
add (46137,"Ziebach County", "SD", "South Dakota", "5", -6:1, 2176, 1148, 1, 0, 0);
add (01127,"Walker County", "AL", "Alabama", "3", -6:1, 71027, 1148, 1, 0, 0);
add (45039,"Fairfield County", "SC", "South Carolina", "2", -5:1, 22394, 1387, 1, 0, 0);
add (39139,"Richland County", "OH", "Ohio", "4", -5:1, 127342, 1387, 1, 0, 0);
add (22041,"Franklin Parish", "LA", "Louisiana", "7", -6:1, 22163, 1148, 1, 0, 0);
add (29061,"Daviess County", "MO", "Mosourri", "6", -6:1, 7842, 1148, 1, 0, 0);
no 0 1
sameChoiceAsValueColumn Content type: String
The specified list's column which contains the value to generate. Must match a column specified in the respective 'set names' statement.
yes 1 1
name (Class)Name of this element. Used to identify plugin Class. Full name is required. Example: com.en.myPluginPackage.myPuginClass no 0 1
valueColumn Content type: String
The specified list's column which contains the value to generate. Must match a column specified in the respective 'set names' statement.
yes 1 1
weightColumn Content type: String
The specified list's column which contains the weight to use. Must match a column specified in the respective 'set names' statement.
yes 1 1
id Identification String of this element. May be used to uniquely identify a field within the children of an Element. no 0 1
sameChoiceAsList Content type: String
The name of the list to use from the specified weight file. A list in the file starts with the keyword 'create'.
yes 1 1
Nodes
Name Description Required Min Max Allowed Values
sameChoiceAs Content type: Empty
Requires a <field> and a <generatorByID> attribute (in same table) to pick the row number from. If specified this WeightedSubListItem does not choose a random row, but it uses the same row as the referenced generator.
yes 1 1
2.7-83fb0 | 2020-04-22