andes.core.service.BaseService#
- class andes.core.service.BaseService(name: str = None, tex_name: str = None, unit: str = None, info: str = None, vtype: Type = None)[source]#
Base class for Service.
Service is a v-provider type for holding internal and temporary values. Subclasses need to implement
v
as a member attribute or using a property decorator.- Parameters:
- namestr
Instance name
- Attributes:
- ownerModel
The hosting/owner model instance
- __init__(name: str = None, tex_name: str = None, unit: str = None, info: str = None, vtype: Type = None)[source]#
Methods
Assign memory for
self.v
and set the array to zero.Return name in a list
Attributes
Return the class name
Return the count of values in
self.v
.