class documentation
class TIModel: (source)
Constructor: TIModel(name, features, magic, product_id, lang)
Data type for all model constants
Every 83-series model is included in this module as a constant to use in code. Each model holds its (abbreviated) name, features, file magic, product ID, and native language.
Models can also be used to obtain token maps and tries for tokenization and OS versions for compatibility checks.
Method | __eq__ |
Undocumented |
Method | __ge__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | has |
Whether this model has a given feature |
Method | OS |
An OsVersion with this model as its model and a supplied version |
Constant | MODELS |
A list of all models |
Instance Variable | features |
Undocumented |
Instance Variable | lang |
Undocumented |
Instance Variable | magic |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | product |
Undocumented |
Instance Variable | tokens |
Undocumented |
Property | order |
This model's order within the chronology used by the token sheets |
def __init__(self, name:
str
, features: TIFeature
, magic: str
, product_id: int
, lang: str
):
(source)
¶
Undocumented
Whether this model has a given feature
Parameters | |
feature:TIFeature | The feature to check |
Returns | |
Whether this model has feature |
An OsVersion
with this model as its model and a supplied version
Parameters | |
version:str | An OS version number (defaults to the model's earliest OS) |
Returns | |
OsVersion | An OsVersion for this model and version |