Required
project| Type: | Project |
| Description: | The project for the component. |
class EventComponent(builtins.object):
def __init__(self, project: Project, path: pathlib.Path): ...| Type: | Project |
| Description: | The project for the component. |
| Type: | pathlib.Path |
| Description: | The event path in the project. |
def add(
self,
e: Event | EventCollection | EventBlockCollection | str | pathlib.Path,
check_consistency_with_domain: bool = True,
) -> None: ...| Type: | Event | EventCollection | EventBlockCollection | str | pathlib.Path |
| Description: | Event, EventCollection, or an event block representation to be added. |
| Type: | bool |
| Default value: | True |
| Description: | Ensure that the entity is compatible with the simulation domain. |
def delete(self, event_name: str) -> None: ...| Type: | str |
| Description: | Name of the event to be deleted. |
def exists(self, event_name: str) -> bool: ...| Type: | str |
| Description: | The name of the event. |
def get(self, event_name: str) -> Event: ...| Type: | str |
| Description: | Name of the event. |
def get_all(self) -> EventCollection: ...def list(self) -> list[str]: ...def update(self, e: Event) -> None: ...| Type: | Event |
| Description: | Event to be updated. |