ramarea / scrm

MIT License
0 stars 0 forks source link

TESTS - AGENT CLASS #7

Open ramarea opened 3 years ago

ramarea commented 3 years ago

AGENT INIT

self.notnow_orders = 0

self.processed_orders = 0

self.value_add = 0

ramarea commented 3 years ago

REPLENISHINVENTORY

print("I am attempting to replish inventory and my name is")

print(self.name)

#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) '''

print(self.orders_out)

ramarea commented 3 years ago

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) '''

ramarea commented 3 years ago

PROCESSQUEUEDORDERS

print("Printing time remaining")

        #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) '''

self.notnow_orders += 1

            '''
            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) '''