monai.deploy.core.Condition

class monai.deploy.core.Condition(self: holoscan.core._core.Condition, *args, **kwargs) None

Bases: holoscan.core._core.Component

Class representing a condition.

Class representing a condition.

Can be initialized with any number of Python positional and keyword arguments.

If a name keyword argument is provided, it must be a str and will be used to set the name of the Operator.

If a fragment keyword argument is provided, it must be of type holoscan.core.Fragment (or holoscan.core.Application). A single Fragment object can also be provided positionally instead.

Any other arguments will be cast from a Python argument type to a C++ Arg and stored in self.args. (For details on how the casting is done, see the py_object_to_arg utility).

*args

Positional arguments.

**kwargs

Keyword arguments.

RuntimeError

If name kwarg is provided, but is not of str type. If multiple arguments of type Fragment are provided. If any other arguments cannot be converted to Arg type via py_object_to_arg.

Methods

__init__(self, *args, **kwargs)

__init__(self: holoscan.core._core.Condition, *args, **kwargs) -> None

add_arg(*args, **kwargs)

Overloaded function.

initialize(self)

initialization method for the condition.

setup(self, arg0)

setup method for the condition.

Attributes

args

The list of arguments associated with the component.

description

YAML formatted string describing the condition.

fragment

Fragment that the condition belongs to.

id

The identifier of the component.

name

The name of the condition.

spec

add_arg(*args, **kwargs)

Overloaded function.

  1. add_arg(self: holoscan.core._core.ComponentBase, arg: holoscan.core._core.Arg) -> None

Add an argument to the component.

  1. add_arg(self: holoscan.core._core.ComponentBase, arg: holoscan.core._core.ArgList) -> None

Add a list of arguments to the component.

property args

The list of arguments associated with the component.

arglist : holoscan.core.ArgList

property description

YAML formatted string describing the condition.

property fragment

Fragment that the condition belongs to.

name : holoscan.core.Fragment

property id

The identifier of the component.

The identifier is initially set to -1, and will become a valid value when the component is initialized.

With the default executor (holoscan.gxf.GXFExecutor), the identifier is set to the GXF component ID.

id : int

initialize(self: holoscan.core._core.Condition) None

initialization method for the condition.

property name

The name of the condition.

name : str

setup(self: holoscan.core._core.Condition, arg0: holoscan.core._core.ComponentSpec) None

setup method for the condition.