Simon Hunt | 99ee1e2 | 2015-02-13 09:24:43 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2015 Open Networking Laboratory |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | /* |
| 18 | ONOS GUI -- Topology layer filtering Module. |
| 19 | Provides functionality to visually differentiate between the packet and |
| 20 | optical layers of the topology. |
| 21 | */ |
| 22 | |
| 23 | (function () { |
| 24 | 'use strict'; |
| 25 | |
| 26 | // injected refs |
| 27 | var $log, fs, flash, tps, tts; |
| 28 | |
| 29 | // api to topoForce |
| 30 | var api; |
| 31 | /* |
| 32 | node() // get ref to D3 selection of nodes |
| 33 | */ |
| 34 | |
| 35 | // internal state |
| 36 | |
| 37 | |
| 38 | // === ----------------------------------------------------- |
| 39 | // === MODULE DEFINITION === |
| 40 | |
| 41 | angular.module('ovTopo') |
| 42 | .factory('TopoFilterService', |
| 43 | ['$log', 'FnService', |
| 44 | 'FlashService', |
| 45 | 'TopoPanelService', |
| 46 | 'TopoTrafficService', |
| 47 | |
| 48 | function (_$log_, _fs_, _flash_, _tps_, _tts_) { |
| 49 | $log = _$log_; |
| 50 | fs = _fs_; |
| 51 | flash = _flash_; |
| 52 | tps = _tps_; |
| 53 | tts = _tts_; |
| 54 | |
| 55 | function initFilter(_api_) { |
| 56 | api = _api_; |
| 57 | } |
| 58 | |
| 59 | function destroyFilter() { } |
| 60 | |
| 61 | return { |
| 62 | initFilter: initFilter, |
| 63 | destroyFilter: destroyFilter |
| 64 | }; |
| 65 | }]); |
| 66 | }()); |