Container ship (Beluga) with current and outgoing jigs.
More...
Container ship (Beluga) with current and outgoing jigs.
Represents a ship that can carry jigs. Has current jigs aboard and a list of outgoing jig types that need to be loaded.
◆ __init__()
rl.env.state.Beluga.__init__ |
( |
| self, |
|
|
list[int] | current_jigs, |
|
|
list[JigType] | outgoing ) |
Initialize a Beluga ship.
- Parameters
-
current_jigs | List of jig IDs currently on the ship |
outgoing | List of jig types that need to be loaded onto this ship |
96 def __init__(self, current_jigs: list[int], outgoing: list[JigType]):
97 """!
98 @brief Initialize a Beluga ship
99 @param current_jigs List of jig IDs currently on the ship
100 @param outgoing List of jig types that need to be loaded onto this ship
101 """
102 self.current_jigs = current_jigs
103 self.outgoing = outgoing
104
◆ __str__()
rl.env.state.Beluga.__str__ |
( |
| self | ) |
|
105 def __str__(self):
106 return "current_jigs = " + str(self.current_jigs) + " | outgoing = " + str(self.outgoing)
107
◆ copy()
rl.env.state.Beluga.copy |
( |
| self | ) |
|
Create a deep copy of this Beluga.
- Returns
- New Beluga instance with same properties
108 def copy(self):
109 """!
110 @brief Create a deep copy of this Beluga
111 @return New Beluga instance with same properties
112 """
113
114 return Beluga(self.current_jigs[:], self.outgoing[:])
115
116
◆ current_jigs
rl.env.state.Beluga.current_jigs = current_jigs |
◆ outgoing
rl.env.state.Beluga.outgoing = outgoing |
The documentation for this class was generated from the following file: