flatland.integrations.interactiveai.event_api.models.metadata_schema_railway module#

APIFlask

No description provided (generated by Openapi Generator openapitools/openapi-generator)

The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class flatland.integrations.interactiveai.event_api.models.metadata_schema_railway.MetadataSchemaRailway(*, agent_id: Annotated[str, Strict(strict=True)] | None, agent_position: List[Annotated[int, Strict(strict=True)] | None] | None = None, delay: Annotated[int, Strict(strict=True)], event_type: Annotated[str, Strict(strict=True)], id_train: Annotated[str, Strict(strict=True)] | None, latitude: Annotated[float, Strict(strict=True)] | Annotated[int, Strict(strict=True)] | None = None, longitude: Annotated[float, Strict(strict=True)] | Annotated[int, Strict(strict=True)] | None = None, malfunction_stop_position: List[Annotated[int, Strict(strict=True)] | None] | None = None, num_rame: Annotated[str, Strict(strict=True)] | None = None, simulation_name: Annotated[str, Strict(strict=True)] | None = None, tmp_rame: Annotated[str, Strict(strict=True)] | None = None, travel_plan: List[Dict[str, Any]] | None = None)[source]#

Bases: BaseModel

agent_id: StrictStr | None#
agent_position: List[StrictInt | None] | None#
delay: StrictInt#
event_type: StrictStr#
classmethod from_dict(obj: Dict[str, Any] | None) Self | None[source]#

Create an instance of MetadataSchemaRailway from a dict

classmethod from_json(json_str: str) Self | None[source]#

Create an instance of MetadataSchemaRailway from a JSON string

id_train: StrictStr | None#
latitude: StrictFloat | StrictInt | None#
longitude: StrictFloat | StrictInt | None#
malfunction_stop_position: List[StrictInt | None] | None#
model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

num_rame: StrictStr | None#
simulation_name: StrictStr | None#
tmp_rame: StrictStr | None#
to_dict() Dict[str, Any][source]#

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

to_json() str[source]#

Returns the JSON representation of the model using alias

to_str() str[source]#

Returns the string representation of the model using alias

travel_plan: List[Dict[str, Any]] | None#