Individual jig instance with type and status.
More...
Individual jig instance with type and status.
A jig can be empty or loaded, which affects its size and determines valid operations that can be performed on it.
◆ __init__()
rl.env.state.Jig.__init__ |
( |
| self, |
|
|
JigType | jig_type, |
|
|
bool | empty ) |
Initialize a jig instance.
- Parameters
-
jig_type | Type of this jig (determines size properties) |
empty | Whether the jig is currently empty or loaded |
68 def __init__(self, jig_type: JigType, empty: bool):
69 """!
70 @brief Initialize a jig instance
71 @param jig_type Type of this jig (determines size properties)
72 @param empty Whether the jig is currently empty or loaded
73 """
74 self.jig_type = jig_type
75 self.empty = empty
76
◆ __str__()
rl.env.state.Jig.__str__ |
( |
| self | ) |
|
77 def __str__(self):
78 return str(self.jig_type) + " | " + str(self.empty)
79
◆ copy()
rl.env.state.Jig.copy |
( |
| self | ) |
|
Create a deep copy of this jig.
- Returns
- New Jig instance with same properties
80 def copy(self):
81 """!
82 @brief Create a deep copy of this jig
83 @return New Jig instance with same properties
84 """
85 return Jig(self.jig_type, self.empty)
86
87
◆ empty
rl.env.state.Jig.empty = empty |
◆ jig_type
rl.env.state.Jig.jig_type = jig_type |
The documentation for this class was generated from the following file: