get_mec_5g#

eclypse.builders.infrastructure.patterns.mec_5g.get_mec_5g(user_count, ran_count, mec_count=None, cloud_count=1, infrastructure_id='mec_5g', 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 5G edge infrastructure with radio access, MEC, and cloud tiers.

Parameters:
  • user_count (int) – Number of user-equipment nodes.

  • ran_count (int) – Number of radio access sites.

  • mec_count (int | None) – Number of MEC hosts. Defaults to ran_count.

  • cloud_count (int) – Number of cloud nodes.

  • 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 MEC 5G infrastructure.

Return type:

Infrastructure

Raises:

ValueError – If the required radio access or MEC tiers are missing.