get_vehicular_edge#

eclypse.builders.infrastructure.patterns.vehicular_edge.get_vehicular_edge(vehicle_count, rsu_count, mec_count=1, cloud_count=1, infrastructure_id='vehicular_edge', symmetric=True, update_policies=None, node_assets=None, link_assets=None, include_default_assets=False, strict=False, resource_init='max', path_algorithm=None, seed=None)[source]#

Create a vehicular-edge topology with RSUs, MEC, and cloud tiers.

Parameters:
  • vehicle_count (int) – Number of vehicle nodes.

  • rsu_count (int) – Number of roadside units.

  • mec_count (int) – Number of MEC hosts serving the roadside tier.

  • cloud_count (int) – Number of cloud nodes attached to MEC.

  • infrastructure_id (str) – Identifier assigned to the infrastructure.

  • symmetric (bool) – Whether generated links should be mirrored.

  • update_policies (UpdatePolicies) – Graph update policies executed during evolve().

  • node_assets (dict[str, Asset] | None) – Node asset definitions available to the infrastructure.

  • link_assets (dict[str, Asset] | None) – Edge asset definitions available to the infrastructure.

  • include_default_assets (bool) – Whether to include default ECLYPSE assets.

  • strict (bool) – Whether inconsistent asset values should raise.

  • resource_init (InitPolicy) – Initialisation policy used for graph assets.

  • path_algorithm (Callable[[nx.Graph, str, str], list[str]] | None) – Path computation function for infrastructure routing.

  • seed (int | None) – Seed forwarded to the infrastructure random generator.

Returns:

The generated vehicular-edge infrastructure.

Return type:

Infrastructure

Raises:

ValueError – If the topology misses roadside or MEC nodes.