From 1d45f1a72b6f54b4cd43070154c9cb6fb51471ca Mon Sep 17 00:00:00 2001 From: Shankar Narayanan Date: Tue, 2 Apr 2019 13:00:38 -0400 Subject: Removed aai simulator code which is no longer valid. Change-Id: I06ca92b1a706c67f8f895a293d770915ea1f2240 Signed-off-by: Shankar Narayanan Issue-ID: OPTFRA-467 --- conductor/conductor/solver/request/parser.py | 39 ---------------------------- 1 file changed, 39 deletions(-) (limited to 'conductor') diff --git a/conductor/conductor/solver/request/parser.py b/conductor/conductor/solver/request/parser.py index 5e7c80e..0b3fb76 100755 --- a/conductor/conductor/solver/request/parser.py +++ b/conductor/conductor/solver/request/parser.py @@ -504,45 +504,6 @@ class Parser(object): return countries_list - def get_data_from_aai_simulator(self): - loc = demand.Location("uCPE") - loc.loc_type = "coordinates" - latitude = random.uniform(self.region_gen.least_latitude, - self.region_gen.most_latitude) - longitude = random.uniform(self.region_gen.least_longitude, - self.region_gen.most_longitude) - loc.value = (latitude, longitude) - self.locations[loc.name] = loc - - demand1 = demand.Demand("vVIG") - demand1.resources = self.region_gen.regions - demand1.sort_base = 0 # this is only for testing - self.demands[demand1.name] = demand1 - - demand2 = demand.Demand("vGW") - demand2.resources = self.region_gen.regions - demand2.sort_base = 2 # this is only for testing - self.demands[demand2.name] = demand2 - - demand3 = demand.Demand("vVIG2") - demand3.resources = self.region_gen.regions - demand3.sort_base = 1 # this is only for testing - self.demands[demand3.name] = demand3 - - demand4 = demand.Demand("vGW2") - demand4.resources = self.region_gen.regions - demand4.sort_base = 3 # this is only for testing - self.demands[demand4.name] = demand4 - - constraint_list = [] - - access_distance = access_dist.AccessDistance( - "uCPE-all", "access_distance", - [demand1.name, demand2.name, demand3.name, demand4.name], - _comparison_operator=operator.le, _threshold=50000, - _location=loc) - constraint_list.append(access_distance) - def reorder_constraint(self): # added manual ranking to the constraint type for optimizing purpose the last 2 are costly interaction for constraint_name, constraint in self.constraints.items(): -- cgit 1.2.3-korg