diff options
author | Shankar Narayanan <snarayanan@research.att.com> | 2019-04-02 13:00:38 -0400 |
---|---|---|
committer | Shankar Narayanan <snarayanan@research.att.com> | 2019-04-02 13:01:04 -0400 |
commit | 1d45f1a72b6f54b4cd43070154c9cb6fb51471ca (patch) | |
tree | 9656e53854a9887f68090f1ca44455fdbb78b335 /conductor | |
parent | 0da030f70e15963f09a4f11639f0eade8f8e0e6a (diff) |
Removed aai simulator code which is no longer valid.
Change-Id: I06ca92b1a706c67f8f895a293d770915ea1f2240
Signed-off-by: Shankar Narayanan <snarayanan@research.att.com>
Issue-ID: OPTFRA-467
Diffstat (limited to 'conductor')
-rwxr-xr-x | conductor/conductor/solver/request/parser.py | 39 |
1 files changed, 0 insertions, 39 deletions
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(): |