vantage6.cli.context.select_context_class#

select_context_class(type_)#

Select the context class based on the type of instance.

Parameters:

type (InstanceType) – The type of instance for which the context should be inserted

Returns:

Specialized subclass of AppContext for the given instance type

Return type:

ServerContext | NodeContext | AlgorithmStoreContext

Raises:

NotImplementedError – If the type_ is not implemented