Artifact¶
-
class
creamas.core.artifact.
Artifact
(creator, obj, domain=<class 'int'>)[source]¶ Base class for artifacts.
A wrapper around the actual artifact object (
obj
) which holds information about the creator, framings and evaluations of the artifact.-
add_eval
(agent, e, fr=None)[source]¶ Add or change agent’s evaluation of the artifact with given framing information.
-
get_feature_value
(feat)[source]¶ Return value for the given feature string, or
None
if it is not found.
-
property
creator
¶ The name of the agent which created the artifact.
-
property
domain
¶ Domain of the artifact. Domain must match feature’s possible domains at evaluation time, or None is returned.
-
property
evals
¶ Dictionary of evaluations for the artifact.
Keys are the names of the evaluating agents and values are their actual evaluations.
-
property
feature_values
¶ Values for all features extracted from the artifact.
-
property
framings
¶ Dictionary of framings for the artifacts.
Keys are the names of the framing agents and values are their actual framings.
-
property
obj
¶ Artifact object itself.
-