# Main function from where program starts if __name__ == '__main__': # Open the predefined problem domain related info file here fo = openFile('static_value.txt') exec('content=' + fo.read()) # Create the Retriever module, given case based memory file and # problem domain related info file rt = Retriever('generated_plan.txt', 'state_similarity.txt') # Create a current state and goal state to test our program # Create the current state here currentState = State('current') currentState.target = 'me' currentState.loc = {'me':'IU Campus', 'bus':'bus_stop_2'} currentState.cash = {'me':3050} currentState.balance_bank = {'me':120} currentState.time = {'me':1820} currentState.nearest_bus_stop={'me': 'bus_stop_2'} # Put the domain related info into the state for stateItem in content: exec("currentState."+stateItem) # Create the goal state here goalState = State('goal') goalState.loc = {'me':'Paris'} goalState.cash = {'me':170} goalState.target = 'me' # Put the domain related info into the state