Open ramarea opened 3 years ago
REPLENISHINVENTORY
#print("I have this many suppliers")
#print(len(self.suppliers))
''' print("I am successfully replenishing inventory and the reorder quantity is") print(reorder_qty) print("my supplier is") print(supplier.name) print("my order quantity to this supplier is") print(1 / len(self.suppliers) * reorder_qty) '''
INVENTORYCHECK
''' print(self.name) print("self inventory level is") print(self.inventory) print("SQ policy S is") print(SQ_POLICY_S) print("the conditional evaluates to") print(self.inventory < SQ_POLICY_S) '''
''' print("I am inside") print("I am ordering this many units") print(SQ_POLICY_Q) '''
PROCESSQUEUEDORDERS
#print(order.time_remaining)
#print("Printing inventory")
#print(type(self.inventory))
#print("Printing quantity")
#print(order.quantity)
'''
print("inventory quantity is")
print(self.inventory)
print("customer is")
print(order.customer)
print("order quantity is")
print(order.quantity)
print("remaining time is")
print(order.time_remaining)
'''
#self.processed_orders += 1 # DEBUGGING, DELETE AFTER
''' print("I am about to remove inventory but there are currently it is") print(self.inventory) print("The quantity removed is") print(order.quantity) '''
''' print("Now there is this inventory") print(self.inventory) print("customer is") print(order.customer) print("order quantity is") print(order.quantity) '''
'''
print("remaining time is")
print(order.time_remaining)
'''
''' print("The current agent is") print(self.name) print("This agent processed this many orders") print(self.processed_orders) print("This agent filled this many orders") print(self.filled_orders) print("This agent discarded this many orders") print(self.discarded_orders) print("This agent delayed this many orders") print(self.notnow_orders) '''
AGENT INIT
self.notnow_orders = 0
self.processed_orders = 0
self.value_add = 0