tbapi.api.bases.optimization_vector

 1from __future__ import annotations
 2from typing import TYPE_CHECKING
 3from tbapi.common.decorators import tb_class, tb_interface
 4from tbapi.common.converters import to_python_datetime, to_net_datetime
 5from datetime import datetime
 6from Tickblaze.Scripts.Api.Bases import OptimizationVector as _OptimizationVector
 7from typing import Any, overload
 8from abc import ABC, abstractmethod
 9
10@tb_class(_OptimizationVector)
11class OptimizationVector():
12
13    @overload
14    @staticmethod
15    def new() -> "OptimizationVector":
16        """Constructor overload with arguments: """
17        ...
18    @staticmethod
19    def new(*args, **kwargs):
20        """Generic factory method for OptimizationVector. Use overloads for IDE type hints."""
21        return OptimizationVector(*args, **kwargs)
22
23    @property
24    def index(self) -> int:
25        val = self._value.Index
26        return val
27    @index.setter
28    def index(self, val: int):
29        tmp = self._value
30        tmp.Index = val
31        self._value = tmp
32    @property
33    def values(self) -> IReadOnlyList:
34        val = self._value.Values
35        return val
36    @values.setter
37    def values(self, val: IReadOnlyList):
38        tmp = self._value
39        tmp.Values = val
40        self._value = tmp
41    @property
42    def score(self) -> float:
43        val = self._value.Score
44        return val
45    @score.setter
46    def score(self, val: float):
47        tmp = self._value
48        tmp.Score = val
49        self._value = tmp
50    @property
51    def is_processed(self) -> bool:
52        val = self._value.IsProcessed
53        return val
54    @is_processed.setter
55    def is_processed(self, val: bool):
56        tmp = self._value
57        tmp.IsProcessed = val
58        self._value = tmp
@tb_class(_OptimizationVector)
class OptimizationVector:
18@tb_class(_OptimizationVector)
19class OptimizationVector():
20
21    @overload
22    @staticmethod
23    def new() -> "OptimizationVector":
24        """Constructor overload with arguments: """
25        ...
26    @staticmethod
27    def new(*args, **kwargs):
28        """Generic factory method for OptimizationVector. Use overloads for IDE type hints."""
29        return OptimizationVector(*args, **kwargs)
30
31    @property
32    def index(self) -> int:
33        val = self._value.Index
34        return val
35    @index.setter
36    def index(self, val: int):
37        tmp = self._value
38        tmp.Index = val
39        self._value = tmp
40    @property
41    def values(self) -> IReadOnlyList:
42        val = self._value.Values
43        return val
44    @values.setter
45    def values(self, val: IReadOnlyList):
46        tmp = self._value
47        tmp.Values = val
48        self._value = tmp
49    @property
50    def score(self) -> float:
51        val = self._value.Score
52        return val
53    @score.setter
54    def score(self, val: float):
55        tmp = self._value
56        tmp.Score = val
57        self._value = tmp
58    @property
59    def is_processed(self) -> bool:
60        val = self._value.IsProcessed
61        return val
62    @is_processed.setter
63    def is_processed(self, val: bool):
64        tmp = self._value
65        tmp.IsProcessed = val
66        self._value = tmp
OptimizationVector(*args, **kwargs)
162        def __init__(self, *args, **kwargs):
163            pass
@staticmethod
def new(*args, **kwargs):
26    @staticmethod
27    def new(*args, **kwargs):
28        """Generic factory method for OptimizationVector. Use overloads for IDE type hints."""
29        return OptimizationVector(*args, **kwargs)

Generic factory method for OptimizationVector. Use overloads for IDE type hints.

index: int
31    @property
32    def index(self) -> int:
33        val = self._value.Index
34        return val
values: 'IReadOnlyList'
40    @property
41    def values(self) -> IReadOnlyList:
42        val = self._value.Values
43        return val
score: float
49    @property
50    def score(self) -> float:
51        val = self._value.Score
52        return val
is_processed: bool
58    @property
59    def is_processed(self) -> bool:
60        val = self._value.IsProcessed
61        return val