Liking cljdoc? Tell your friends :D

com.yetanalytics.datasim.xapi.profile

Profile compilation.

Creates a profile-map data structure that is used for the simulation of an entire Profile cosmos.

Profile compilation.

Creates a `profile-map` data structure that is used for the simulation
of an entire Profile cosmos.
raw docstring

profile-object-specclj

source

profile-typesclj

source

profiles->profile-mapclj

(profiles->profile-map profiles pattern-params activity-seed)

Create a map from profiles that contains the following:

  • type-iri-map: A map from object types to IDs to the object maps (i.e. Concepts, Statement Templates, and Patterns).
  • activity-map: A map from Activity Type IDs to Activity IDs to the Activity maps (in Statement, not Profile, form).
  • verb-map: A map from Verb IDs to Verbs (in Statement, not Profile, form).
  • pattern-map: A map from Pattern and Statement Template IDs to Patterns and Statement IDs, including a ::pattern/root entry to an alternates Pattern over all primary Patterns.
  • extension-spec-map: A map from one of :activity, :context, or :result to an Extension ID to the Extension spec derived from its inlineSchema property.
  • statement-base-map: A map from Template IDs to the Template's xAPI Statement base, as derived from its determining properties and inScheme.
  • parsed-rules-map: A map from Template IDs to the Template's parsed rules.

Uses pattern-params to narrow down primary Patterns and activity-seed to generate additional Activity IDs in the cosmos.

Create a map from `profiles` that contains the following:

- `type-iri-map`: A map from object types to IDs to the object maps (i.e.
Concepts, Statement Templates, and Patterns).
- `activity-map`: A map from Activity Type IDs to Activity IDs to the
Activity maps (in Statement, not Profile, form).
- `verb-map`: A map from Verb IDs to Verbs (in Statement, not Profile,
form).
- `pattern-map`: A map from Pattern and Statement Template IDs to Patterns
and Statement IDs, including a `::pattern/root` entry to an alternates
Pattern over all primary Patterns.
- `extension-spec-map`: A map from one of `:activity`, `:context`, or
`:result` to an Extension ID to the Extension spec derived from its
`inlineSchema property`.
- `statement-base-map`: A map from Template IDs to the Template's
xAPI Statement base, as derived from its determining properties and inScheme.
- `parsed-rules-map`: A map from Template IDs to the Template's parsed
rules.

Uses `pattern-params` to narrow down primary Patterns and `activity-seed` to
generate additional Activity IDs in the cosmos.
sourceraw docstring

profiles->type-iri-mapclj

(profiles->type-iri-map profiles)

Given a collection of profiles, return a map of type (e.g. "Verb", "StatementTemplate", "Pattern"), to a map from object ID IRIs to the objects themselves.

Given a collection of profiles, return a map of type (e.g. "Verb",
"StatementTemplate", "Pattern"), to a map from object ID IRIs to
the objects themselves.
sourceraw docstring

select-primary-patternsclj

(select-primary-patterns type-iri-map {:keys [genProfiles genPatterns]})

Given type-iri-map and the genProfiles and genPatterns params, update the Pattern map to further specify primary patterns for generation. Primary patterns in this context must be specified by genProfiles or genPatterns, or else they will no longer be counted as primary patterns.

Given `type-iri-map` and the `genProfiles` and `genPatterns` params,
update the Pattern map to further specify primary patterns for generation.
Primary patterns in this context must be specified by `genProfiles` or
`genPatterns`, or else they will no longer be counted as primary patterns.
sourceraw docstring

walk-profile-patternsclj

(walk-profile-patterns {pattern-iri-map :pattern-map}
                       {pattern-alignments :patterns}
                       seed
                       max-restarts
                       start-time)

Walk the primary patterns of the compiled profiles,

Walk the primary patterns of the compiled profiles,
sourceraw docstring

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

× close