jLM.BaseTypes#
Simulation object base class and collections
Functions
|
A decorator indicating abstract methods. |
Classes
|
Metaclass for defining Abstract Base Classes (ABCs). |
|
This function simply creates and returns a new Namespace object wrapping the current SimObjs container. |
|
Base class to simulation objects |
|
Container to manage simulation data types |
- class jLM.BaseTypes.Namespace(sos)[source]#
Bases:
object
This function simply creates and returns a new Namespace object wrapping the current SimObjs container. The main purpose is to provide a more user-friendly interface for accessing simulation objects through tab completion.
Convienence class for TAB completing simulation objects
- Parameters:
sos (
SimObjs
) – Object collection
- class jLM.BaseTypes.SimObj(sim, idx, *args, **kwargs)[source]#
Bases:
object
Base class to simulation objects
- class jLM.BaseTypes.SimObjs(sim, cls, idbase=0)[source]#
Bases:
object
Container to manage simulation data types
- get(*args, **kwargs)[source]#
Return a simulation object, create it if it does not exist
- Parameters:
*args – Arguments to constructor
- Keyword Arguments:
**kwargs – Keyword arguments to constructor
- Returns:
Object
- Return type:
- is_defined(*args, **kwargs)[source]#
Check if get would create a new object
- Parameters:
*args – Arguments to constructor
- Keyword Arguments:
**kwargs – Keyword arguments to constructor
- Returns:
True if would create new object.
- Return type:
bool