Entities
- class nettlesome.entities.Entity(**data)
Things that can be referenced in a Statement.
The name of a Term can replace the placeholder in a StatementTemplate
- Parameters
name – An identifier. An
Entitywith the samenameis considered to refer to the same specific object, but if they have different names but aregenericand are otherwise the same, then they’re considered to have the same meaning and they evaluate equal to one another.generic – Determines whether a change in the
nameof theEntitywould change the meaning of theFactorin which theEntityis embedded.plural – Specifies whether the
Entityobject refers to more than one thing. Can be checked by a StatementTemplate to see whether a verb needs to be made plural.
- implies(other, context=None)
Test if
selfimpliesother.A “generic” Entity implies another Entity even if their names are not the same.
- Return type
- means(other, context=None)
Test if
selfhas the same meaning asother.A “generic” Entity has the same meaning as another Entity even if their names are not the same.
- Return type
- property short_string
Get a short representation of
self.In Nettlesome, including angle brackets around the representation of an object is an indication that the object is generic.