From f4aa55ef235319abdbcba9de8da43239f03777cb Mon Sep 17 00:00:00 2001 From: chapuisk Date: Thu, 15 Jul 2021 13:28:11 +0200 Subject: [PATCH] [Genstar] add more doc details --- .../genstar/statement/GenerateStatement.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/espacedev.gaml.extensions.genstar/src/espacedev/gaml/extensions/genstar/statement/GenerateStatement.java b/espacedev.gaml.extensions.genstar/src/espacedev/gaml/extensions/genstar/statement/GenerateStatement.java index ec7d32b590..6c91af07e2 100644 --- a/espacedev.gaml.extensions.genstar/src/espacedev/gaml/extensions/genstar/statement/GenerateStatement.java +++ b/espacedev.gaml.extensions.genstar/src/espacedev/gaml/extensions/genstar/statement/GenerateStatement.java @@ -28,6 +28,7 @@ import msi.gama.precompiler.GamlAnnotations.symbol; import msi.gama.precompiler.GamlAnnotations.usage; import msi.gama.precompiler.IConcept; +import msi.gama.precompiler.IOperatorCategory; import msi.gama.precompiler.ISymbolKind; import msi.gama.runtime.IScope; import msi.gama.runtime.exceptions.GamaRuntimeException; @@ -60,6 +61,7 @@ kind = SEQUENCE_STATEMENT, with_sequence = true, with_args = true, + category = { IOperatorCategory.GENSTAR }, concept = { IConcept.SPECIES }, remote_context = true) @inside ( @@ -70,7 +72,8 @@ name = SPECIES, type = { IType.SPECIES, IType.AGENT }, optional = true, - doc = @doc ("The species of the agents to be created.")), + doc = @doc ("The species of the agents to be created.") + ), @facet ( name = FROM, type = IType.NONE, @@ -80,7 +83,8 @@ + "
  • list of csv_file: can be aggregated or micro data
  • \n" + "
  • matrix: describe the joint distribution of two attributes
  • \n" + "
  • bayesian network: describe a conditional distribution of three or more attributes
  • " - + "")), + + "") + ), @facet ( /* * TODO : make those attributes like in csv map @@ -98,7 +102,8 @@ optional = true, doc = @doc ("To specify the number of created agents interpreted as an int value. " + "If facet is ommited or value is 0 or less, generator will treat data used in the 'from' facet as contingencies " - + "(i.e. a count of entities) and infer a number to generate (if distribution is used, then only one entity will be created")), + + "(i.e. a count of entities) and infer a number to generate (if distribution is used, then only one entity will be created") + ), @facet ( name = GenStarConstant.GSGENERATOR, type = { IType.STRING },