RandomStrategy.place#
- RandomStrategy.place(_, application, __, placement_view)[source]
Places the services of an application on the infrastructure nodes, randomly.
- Parameters:
_ (Infrastructure) – The infrastructure to place the application on.
application (Application) – The application to place on the infrastructure.
__ (dict[str, Placement]) – The placement of all the applications in the simulations.
placement_view (PlacementView) – The snapshot of the current state of the infrastructure.
- Returns:
A mapping of services to infrastructure nodes.
- Return type:
dict[str, str]