pycram.datastructures.mixins#

Classes#

HasConcept

A mixin class that adds an ontological concept and individual to a class that will be registered in PyCRAP.

Module Contents#

class pycram.datastructures.mixins.HasConcept(world: pycram.datastructures.world.World, name: typing_extensions.Optional[str] = None, concept: typing_extensions.Type[pycrap.ontologies.Base] = PhysicalObject, parse_name: bool = True)#

A mixin class that adds an ontological concept and individual to a class that will be registered in PyCRAP.

ontology_concept: typing_extensions.Type[pycrap.ontologies.Base]#

The ontological concept that this class represents.

ontology_individual: typing_extensions.Optional[pycrap.ontologies.Base] = None#

The individual in the ontology that is connected with this class.

onto_name: typing_extensions.Optional[str] = None#

The name of the individual in the ontology.