Liking cljdoc? Tell your friends :D
Clojure only.

com.yetanalytics.datasim.xapi.statement

Statement generation.

Statement generation.
raw docstring

generate-statementclj

(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:

ArgumentDescription
type-iri-mapA map from Profile object types to IDs to the object maps.
activity-mapA map from Activity Type IDs to Activity IDs to the Activity maps.
statement-base-mapA map from Template IDs to the Statement base created using template->statement-base.
parsed-rules-mapA map from Template IDs to its parsed rules parsed using template->parsed-rules.
actorThe Actor used in the Statement.
objectsThe vector of object overrides.
weightsThe map of verb, activity, activity-type, and object-override weights.
object-overridesThe map of objects that override Template-specified objects.
templateThe Template used to generate this Statement.
registrationThe registration UUID for the overall generated Statement sequence.
seedThe seed used to generate random numbers during generation.
pattern-ancestorsThe coll of Patterns visited en route to template.
sub-registration(NOT YET IMPLEMENTED) The sub-registration object of the Statement.
timestampThe LocalDateTime timestamp at which the statement occurs; becomes the timestamp value.
timezoneThe time zone string in whicht the statement event occurs.
time-since-lastThe 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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close