Fleet
¶
Bases: Edge
Fleet class representing an AGV (Automated Guided Vehicle) or a group of transporters. Inherits from the Edge class. This fleet can have a single input edge and a single output edge.
Attributes: |
|
---|
Behavior:
The Fleet is a type of edge represents components that moves multiple items simulataneaously between nodes.
User can specify a parameter capacity
to specify how many items can be moved at once.
Incoming edges can use reserve_get and reserve_put calls on the store in the fleet to reserve an item or space and after yielding
the requests, an item can be put and obtained by using put and get methods.
Raises: |
|
---|
Output performance metrics
The key performance metrics of the fleet edge are captured in the stats
attribute (dict) during a simulation run.
last_state_change_time : Time when the state was last changed.
time_averaged_num_of_items_in_fleet : Time-averaged number of items available in the fleet.
total_time_spent_in_states : Dictionary with total time spent in each state.
can_put()
¶
Check if the fleet can accept an item.
Returns¶
bool True if the fleet can accept an item, False otherwise.
can_get()
¶
Check if the fleet can accept an item.
Returns¶
bool True if the fleet can give an item, False otherwise.