Statement generation.
Statement generation.
(generate-statement {:keys [type-iri-map verb-map activity-map extension-map
statement-base-map parsed-rules-map actor weights
objects template seed pattern-ancestors registration
sub-registration timestamp timezone time-since-last]
:as inputs})
Generate a single xAPI Statement. The inputs
map accepts the following
map arguments:
Argument | Description |
---|---|
type-iri-map | A map from Profile object types to IDs to the object maps. |
activity-map | A map from Activity Type IDs to Activity IDs to the Activity maps. |
statement-base-map | A map from Template IDs to the Statement base created using template->statement-base . |
parsed-rules-map | A map from Template IDs to its parsed rules parsed using template->parsed-rules . |
actor | The Actor used in the Statement. |
objects | The vector of object overrides. |
weights | The map of verb, activity, activity-type, and object-override weights. |
object-overrides | The map of objects that override Template-specified objects. |
template | The Template used to generate this Statement. |
registration | The registration UUID for the overall generated Statement sequence. |
seed | The seed used to generate random numbers during generation. |
pattern-ancestors | The coll of Patterns visited en route to template . |
sub-registration | (NOT YET IMPLEMENTED) The sub-registration object of the Statement. |
timestamp | The LocalDateTime timestamp at which the statement occurs; becomes the timestamp value. |
timezone | The time zone string in whicht the statement event occurs. |
time-since-last | The Duration since the previous statement. |
Returns a Statement with template
, time-ms
, and duration-ms
as metadata.
Generate a single xAPI Statement. The `inputs` map accepts the following map arguments: | Argument | Description | --- | --- | `type-iri-map` | A map from Profile object types to IDs to the object maps. | `activity-map` | A map from Activity Type IDs to Activity IDs to the Activity maps. | `statement-base-map` | A map from Template IDs to the Statement base created using `template->statement-base`. | `parsed-rules-map` | A map from Template IDs to its parsed rules parsed using `template->parsed-rules`. | `actor` | The Actor used in the Statement. | `objects` | The vector of object overrides. | `weights` | The map of verb, activity, activity-type, and object-override weights. | `object-overrides` | The map of objects that override Template-specified objects. | `template` | The Template used to generate this Statement. | `registration` | The registration UUID for the overall generated Statement sequence. | `seed` | The seed used to generate random numbers during generation. | `pattern-ancestors` | The coll of Patterns visited en route to `template`. | `sub-registration` | (NOT YET IMPLEMENTED) The sub-registration object of the Statement. | `timestamp` | The LocalDateTime timestamp at which the statement occurs; becomes the timestamp value. | `timezone` | The time zone string in whicht the statement event occurs. | `time-since-last` | The Duration since the previous statement. Returns a Statement with `template`, `time-ms`, and `duration-ms` as metadata.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close