aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/performanceHistoryApp
diff options
context:
space:
mode:
authorherbert <herbert.eiselt@highstreet-technologies.com>2019-12-14 00:06:42 +0100
committerherbert <herbert.eiselt@highstreet-technologies.com>2019-12-14 00:07:02 +0100
commitda4fd6169717cfa04d644d0af0d23dd089a6e373 (patch)
tree3c7a2c804b001349dc24852f7e488061a2f733f4 /sdnr/wt/odlux/apps/performanceHistoryApp
parent58f412ad18c1daf622e54ed36db6014f4e04f3f7 (diff)
remove old version
of devicemodel devicemanager oldux featureaggregator Issue-ID: SDNC-1004 Signed-off-by: herbert <herbert.eiselt@highstreet-technologies.com> Change-Id: I5337643181e2398e5a8097e4ee14fa4ac96d0d4c
Diffstat (limited to 'sdnr/wt/odlux/apps/performanceHistoryApp')
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/.babelrc17
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/package.json43
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/pom.xml161
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/connectedNetworkElementsActions.ts85
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/ltpAction.ts78
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/panelChangeActions.ts32
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/timeChangeAction.ts29
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/components/adaptiveModulation.tsx433
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/components/crossPolarDiscrimination.tsx130
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/components/performanceData.tsx129
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/components/receiveLevel.tsx131
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/components/signalToInterference.tsx133
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/components/temperature.tsx131
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/components/transmissionPower.tsx133
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/adaptiveModulationHandler.ts96
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/availableLtpsActionHandler.ts60
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/connectedNetworkElementsActionHandler.ts56
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/crossPolarDiscriminationHandler.ts63
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceDataHandler.ts65
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts105
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/receiveLevelHandler.ts63
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/signalToInterferenceHandler.ts63
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/temperatureHandler.ts63
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/transmissionPowerHandler.ts63
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/index.html26
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/adaptiveModulationDataType.ts118
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/availableLtps.ts31
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/chartTypes.ts49
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/connectedNetworkElements.ts7
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/crossPolarDiscriminationDataType.ts53
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/panelId.ts4
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/performanceDataType.ts63
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/receiveLevelDataType.ts52
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/signalToInteferenceDataType.ts54
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/temperatureDataType.ts54
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/topologyNetConf.ts29
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/models/transmissionPowerDataType.ts53
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/plugin.tsx111
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/services/performanceHistoryService.ts63
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/chartUtils.tsx75
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts36
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/views/performanceHistoryApplication.tsx373
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src2/main/java/org/onap/ccsdk/features/sdnr/wt/odlux/bundles/MyOdluxBundle.java68
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src2/main/resources/OSGI-INF/blueprint/blueprint.xml9
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src2/test/java/org/onap/ccsdk/features/sdnr/wt/odlux/bundles/test/TestBundleRes.java45
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src2/test/resources/test.js5
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/tsconfig.json37
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/webpack.config.js139
48 files changed, 0 insertions, 3916 deletions
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/.babelrc b/sdnr/wt/odlux/apps/performanceHistoryApp/.babelrc
deleted file mode 100644
index 3d8cd1260..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/.babelrc
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "presets": [
- ["@babel/preset-react"],
- ["@babel/preset-env", {
- "targets": {
- "chrome": "66"
- },
- "spec": true,
- "loose": false,
- "modules": false,
- "debug": false,
- "useBuiltIns": "usage",
- "forceAllTransforms": true
- }]
- ],
- "plugins": []
-}
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/package.json b/sdnr/wt/odlux/apps/performanceHistoryApp/package.json
deleted file mode 100644
index 290046ef5..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/package.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "@odlux/performancehistory-app",
- "version": "0.1.1",
- "description": "A react based modular UI to display performance history data from a database.",
- "main": "index.js",
- "scripts": {
- "start": "webpack-dev-server --env debug",
- "build": "webpack --env release --config webpack.config.js",
- "build:dev": "webpack --env debug --config webpack.config.js"
- },
- "repository": {
- "type": "git",
- "url": "https://git.mfico.de/highstreet-technologies/odlux.git"
- },
- "keywords": [
- "reactjs",
- "redux",
- "ui",
- "framework"
- ],
- "author": "Sai Neetha Phulmali",
- "license": "Apache-2.0",
- "dependencies": {
- "@odlux/framework" : "*",
- "@odlux/connect-app": "*",
- "react-chartjs-2":"2.7.6",
- "chart.js":"2.8.0"
- },
- "peerDependencies": {
- "@types/react": "16.4.14",
- "@types/react-dom": "16.0.8",
- "@types/react-router-dom": "4.3.1",
- "@material-ui/core": "3.8.3",
- "@material-ui/icons": "3.0.2",
- "@types/classnames": "2.2.6",
- "@types/flux": "3.1.8",
- "@types/jquery": "3.3.10",
- "jquery": "3.3.1",
- "react": "16.5.2",
- "react-dom": "16.5.2",
- "react-router-dom": "4.3.1"
- }
-} \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/pom.xml b/sdnr/wt/odlux/apps/performanceHistoryApp/pom.xml
deleted file mode 100644
index 2a172f7a0..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/pom.xml
+++ /dev/null
@@ -1,161 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.onap.ccsdk.parent</groupId>
- <artifactId>odlparent</artifactId>
- <version>1.5.1-SNAPSHOT</version>
- <relativePath/>
- </parent>
-
- <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
- <artifactId>sdnr-wt-odlux-app-performanceHistoryApp</artifactId>
- <version>0.7.0-SNAPSHOT</version>
- <packaging>bundle</packaging>
-
- <name>sdnr-wt-odlux-app-performanceHistoryApp</name>
- <licenses>
- <license>
- <name>Apache License, Version 2.0</name>
- <url>http://www.apache.org/licenses/LICENSE-2.0</url>
- </license>
- </licenses>
-
- <dependencies>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>sdnr-wt-odlux-core-model</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>sdnr-wt-odlux-core-provider</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <pluginRepositories>
- <pluginRepository>
- <id>highstreet repo</id>
- <url>https://cloud-highstreet-technologies.com/mvn/</url>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- </pluginRepository>
- </pluginRepositories>
-
- <build>
- <sourceDirectory>src2/main/java</sourceDirectory>
- <resources>
- <resource>
- <directory>dist</directory>
- <targetPath>odlux</targetPath>
- </resource>
- <resource>
- <directory>src2/main/resources</directory>
- </resource>
- <resource>
- <directory>src2/test/resources</directory>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <artifactId>maven-clean-plugin</artifactId>
- <configuration>
- <filesets>
- <fileset>
- <directory>dist</directory>
- <followSymlinks>false</followSymlinks>
- </fileset>
- <fileset>
- <directory>node</directory>
- <followSymlinks>false</followSymlinks>
- </fileset>
- <fileset>
- <directory>node_modules</directory>
- <followSymlinks>false</followSymlinks>
- </fileset>
- <fileset>
- <directory>../node_modules</directory>
- <followSymlinks>false</followSymlinks>
- </fileset>
- <!-- eclipse bug build bin folder in basedir -->
- <fileset>
- <directory>bin</directory>
- <followSymlinks>false</followSymlinks>
- </fileset>
- </filesets>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>add-test-source</id>
- <phase>generate-test-sources</phase>
- <goals>
- <goal>add-test-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>src2/test/java</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>de.jacksitlab</groupId>
- <artifactId>frontend-maven-plugin</artifactId>
- <version>1.7.1</version>
- <executions>
- <execution>
- <id>install node and yarn</id>
- <goals>
- <goal>install-node-and-yarn</goal>
- </goals>
- <!-- optional: default phase is "generate-resources" -->
- <phase>initialize</phase>
- <configuration>
- <nodeVersion>v8.10.0</nodeVersion>
- <yarnVersion>v1.12.3</yarnVersion>
- </configuration>
- </execution>
- <execution>
- <id>yarn build</id>
- <goals>
- <goal>yarn</goal>
- </goals>
- <configuration>
- <arguments>run build</arguments>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Import-Package>org.onap.ccsdk.features.sdnr.wt.odlux.model.*,com.opensymphony.*</Import-Package>
- <Private-Package/>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/connectedNetworkElementsActions.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/connectedNetworkElementsActions.ts
deleted file mode 100644
index 97d531608..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/connectedNetworkElementsActions.ts
+++ /dev/null
@@ -1,85 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { Action } from '../../../../framework/src/flux/action';
-import { Dispatch } from '../../../../framework/src/flux/store';
-import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
-
-import { ConnectedNetworkElementIds } from '../models/connectedNetworkElements';
-
-/**
- * Represents the base action.
- */
-export class BaseAction extends Action { }
-
-/**
- * Represents an action causing the store to load all connected network element Ids.
- */
-export class LoadAllConnectedNetworkElementsAction extends BaseAction { }
-
-/**
- * Represents an action causing the store to update all connected network element Ids.
- */
-export class AllConnectedNetworkElementsLoadedAction extends BaseAction {
- /**
- * Initialize this instance.
- *
- * @param connectedNetworkElements The connected network element Ids which are loaded from the state of connectApp.
- */
- constructor(public connectedNetworkElementIds: ConnectedNetworkElementIds[] | null, public error?: string) {
- super();
- }
-}
-
-/**
- * Represents an asynchronous thunk action to load all connected network element Ids.
- */
-export const loadAllConnectedNetworkElementsAsync = (dispatch: Dispatch, getState: () => IApplicationStoreState) => {
- window.setTimeout(() => {
- dispatch(new LoadAllConnectedNetworkElementsAction());
- const connectedNetworkElementsIds = getState().connect.mountedNetworkElements;
- let mountIdList: ConnectedNetworkElementIds[] = [];
- connectedNetworkElementsIds.elements.forEach(element => {
- const connectedNetworkElement = {
- mountId: element.mountId
- }
- mountIdList.push(connectedNetworkElement);
- });
- mountIdList.sort((a, b) => {
- if (a.mountId < b.mountId) return -1;
- if (a.mountId > b.mountId) return 1;
- return 0;
- });
- dispatch(new AllConnectedNetworkElementsLoadedAction(mountIdList));
- }, 500);
-};
-
-/**
- * Represents an action causing the store to update mountId.
- */
-export class UpdateMountId extends BaseAction {
- constructor (public nodeId?: string) {
- super();
- }
-}
-
-/**
- * Represents an asynchronous thunk action to load updated mountId.
- */
-export const updateMountIdActionCreator = (nodeId: string ) => async (dispatch: Dispatch) => {
- return dispatch(new UpdateMountId(nodeId));
-}
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/ltpAction.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/ltpAction.ts
deleted file mode 100644
index 2741d889a..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/ltpAction.ts
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { Action } from '../../../../framework/src/flux/action';
-import { Dispatch } from '../../../../framework/src/flux/store';
-
-import { LtpIds } from '../models/availableLtps';
-import { PerformanceHistoryService } from '../services/performanceHistoryService';
-
-/**
- * Represents the base action.
- */
-export class BaseAction extends Action { }
-
-/**
- * Represents an action causing the store to load available ltps.
- */
-export class LoadAllAvailableLtpsAction extends BaseAction { }
-
-/**
- * Represents an action causing the store to update available ltps.
- */
-export class AllAvailableLtpsLoadedAction extends BaseAction {
- /**
- * Initialize this instance.
- * @param availableLtps The available ltps which are returned from the database.
- */
- constructor(public availableLtps: LtpIds[] | null, public error?: string) {
- super();
- }
-}
-
-
-/**
- * Represents an asynchronous thunk action to load available distinctLtps by networkElement from the database and set the returned first Ltp as default.
- * @param networkElement The network element sent to database to get its available distinct Ltps.
- * @param selectedTimePeriod The time period selected sent to database to get the distinct Ltps of the selected network element.
- * @param selectedLtp The Ltp which is selected in the dropdown.
- * @param selectFirstLtp The function to get the first ltp returned from the database to be selected as default on selection upon network element.
- * @param resetLtp The function to verify if the selected ltp is also available in the selected time period database else reset the Ltp dropdown to select.
- */
-export const loadDistinctLtpsbyNetworkElementAsync = (networkElement: string, selectedTimePeriod: string, selectedLtp: string, selectFirstLtp?: Function, resetLtp?: Function) => (dispatch: Dispatch) => {
- dispatch(new LoadAllAvailableLtpsAction());
- PerformanceHistoryService.getDistinctLtpsFromDatabase(networkElement, selectedTimePeriod).then(distinctLtps => {
- if (distinctLtps) {
- const ltps = getDistinctLtps(distinctLtps, selectedLtp, selectFirstLtp, resetLtp);
- dispatch(new AllAvailableLtpsLoadedAction(ltps));
- }
- }).catch(error => {
- dispatch(new AllAvailableLtpsLoadedAction(null, error));
- });
-};
-
-const getDistinctLtps = (distinctLtps: LtpIds[], selectedLtp: string, selectFirstLtp?: Function, resetLtp?: Function) => {
- let ltpNotSelected: boolean = true;
- selectFirstLtp && selectFirstLtp(distinctLtps[0].key);
- distinctLtps.forEach((value: LtpIds) => {
- if (value.key === selectedLtp) {
- ltpNotSelected = false;
- }
- });
- resetLtp && resetLtp(ltpNotSelected);
- return distinctLtps;
-} \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/panelChangeActions.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/panelChangeActions.ts
deleted file mode 100644
index 8b77cb3b0..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/panelChangeActions.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { Action } from '../../../../framework/src/flux/action';
-import { PanelId } from '../models/panelId';
-
-/**
- * Represents an action causing the store to update the panel.
- */
-export class SetPanelAction extends Action {
- /**
- * Initialize this instance.
- * @param panelId Action to set the current panel by its Id.
- */
- constructor(public panelId: PanelId) {
- super();
- }
-}
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/timeChangeAction.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/timeChangeAction.ts
deleted file mode 100644
index a069af13c..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/actions/timeChangeAction.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { Action } from '../../../../framework/src/flux/action';
-import { PmDataInterval } from '../models/performanceDataType';
-
-export class TimeChangeAction extends Action {
- /**
- * Initialize this instance.
- * @param time Action to set the time interval in dropdown.
- */
- constructor(public time: PmDataInterval) {
- super();
- }
-} \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/adaptiveModulation.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/adaptiveModulation.tsx
deleted file mode 100644
index 2564d574a..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/adaptiveModulation.tsx
+++ /dev/null
@@ -1,433 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import * as React from 'react';
-
-import { withRouter, RouteComponentProps } from 'react-router-dom';
-
-import { MaterialTable, ColumnType, ColumnModel, MaterialTableCtorType } from '../../../../framework/src/components/material-table';
-import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
-import connect, { Connect, IDispatcher } from '../../../../framework/src/flux/connect';
-
-import { AdaptiveModulationDataType } from '../models/adaptiveModulationDataType';
-import { IDataSet, IDataSetsObject } from '../models/chartTypes';
-import { createAdaptiveModulationProperties, createAdaptiveModulationActions } from '../handlers/adaptiveModulationHandler';
-import { lineChart, sortDataByTimeStamp } from '../utils/chartUtils';
-import { addColumnLabels } from '../utils/tableUtils';
-
-const mapProps = (state: IApplicationStoreState) => ({
- adaptiveModulationProperties: createAdaptiveModulationProperties(state),
-});
-
-const mapDisp = (dispatcher: IDispatcher) => ({
- adaptiveModulationActions: createAdaptiveModulationActions(dispatcher.dispatch),
-});
-
-type AdaptiveModulationComponentProps = RouteComponentProps & Connect<typeof mapProps, typeof mapDisp> & {
- selectedTimePeriod: string
-};
-
-const AdaptiveModulationTable = MaterialTable as MaterialTableCtorType<AdaptiveModulationDataType>;
-
-/**
- * The Component which gets the adaptiveModulation data from the database based on the selected time period.
- */
-class AdaptiveModulationComponent extends React.Component<AdaptiveModulationComponentProps>{
- render(): JSX.Element {
- const properties = this.props.adaptiveModulationProperties;
- const actions = this.props.adaptiveModulationActions;
-
- const chartPagedData = this.getChartDataValues(properties.rows);
- const adaptiveModulationColumns: ColumnModel<AdaptiveModulationDataType>[] = [
- { property: "radioSignalId", title: "Radio signal", type: ColumnType.text },
- { property: "scannerId", title: "Scanner ID", type: ColumnType.text },
- { property: "utcTimeStamp", title: "End Time", type: ColumnType.text, disableFilter: true },
- {
- property: "suspectIntervalFlag", title: "Suspect Interval", type: ColumnType.custom, customControl: ({ rowData }) => {
- const suspectIntervalFlag = rowData["suspectIntervalFlag"].toString();
- return <div >{suspectIntervalFlag} </div>
- }
- }];
-
- chartPagedData.datasets.forEach(ds => {
- adaptiveModulationColumns.push(addColumnLabels<AdaptiveModulationDataType>(ds.name, ds.columnLabel));
- });
-
- return (
- <>
- {lineChart(chartPagedData)}
- <AdaptiveModulationTable idProperty={"_id"} columns={adaptiveModulationColumns} {...properties} {...actions} />
- </>
- );
- };
-
- /**
- * This function gets the performance values for Adaptive modulation according on the chartjs dataset structure
- * which is to be sent to the chart.
- */
-
- private getChartDataValues = (rows: AdaptiveModulationDataType[]): IDataSetsObject => {
- const _rows = [...rows];
- sortDataByTimeStamp(_rows);
-
- const datasets: IDataSet[] = [{
- name: "time2StatesS",
- label: "QAM2S",
- borderColor: '#62a309fc',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM2S",
- }, {
- name: "time2States",
- label: "QAM2",
- borderColor: '#62a309fc',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM2",
- }, {
- name: "time2StatesL",
- label: "QAM2L",
- borderColor: '#62a309fc',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM2L",
- }, {
- name: "time4StatesS",
- label: "QAM4S",
- borderColor: '#b308edde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM4S",
- }, {
- name: "time4States",
- label: "QAM4",
- borderColor: '#b308edde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM4",
- }, {
- name: "time4StatesL",
- label: "QAM4L",
- borderColor: '#b308edde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM4L",
- }, {
- name: "time16StatesS",
- label: "QAM16S",
- borderColor: '#9b15e2',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM16S",
- }, {
- name: "time16States",
- label: "QAM16",
- borderColor: '#9b15e2',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM16",
- }, {
- name: "time16StatesL",
- label: "QAM16L",
- borderColor: '#9b15e2',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM16L",
- }, {
- name: "time32StatesS",
- label: "QAM32S",
- borderColor: '#2704f5f0',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM32S",
- }, {
- name: "time32States",
- label: "QAM32",
- borderColor: '#2704f5f0',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM32",
- }, {
- name: "time32StatesL",
- label: "QAM32L",
- borderColor: '#2704f5f0',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM32L",
- }, {
- name: "time64StatesS",
- label: "QAM64S",
- borderColor: '#347692',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM64S",
- }, {
- name: "time64States",
- label: "QAM64",
- borderColor: '#347692',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM64",
- }, {
- name: "time64StatesL",
- label: "QAM64L",
- borderColor: '#347692',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM64L",
- }, {
- name: "time128StatesS",
- label: "QAM128S",
- borderColor: '#885e22',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM128S",
- }, {
- name: "time128States",
- label: "QAM128",
- borderColor: '#885e22',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM128",
- }, {
- name: "time128StatesL",
- label: "QAM128L",
- borderColor: '#885e22',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM128L",
- }, {
- name: "time256StatesS",
- label: "QAM256S",
- borderColor: '#de07807a',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM256S",
- }, {
- name: "time256States",
- label: "QAM256",
- borderColor: '#de07807a',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM256",
- }, {
- name: "time256StatesL",
- label: "QAM256L",
- borderColor: '#de07807a',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM256L",
- }, {
- name: "time512StatesS",
- label: "QAM512S",
- borderColor: '#8fdaacde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM512S",
- }, {
- name: "time512States",
- label: "QAM512",
- borderColor: '#8fdaacde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM512",
- }, {
-
- name: "time512StatesL",
- label: "QAM512L",
- borderColor: '#8fdaacde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM512L",
- }, {
-
- name: "time1024StatesS",
- label: "QAM1024S",
- borderColor: '#435b22',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM1024S",
- }, {
-
- name: "time1024States",
- label: "QAM1024",
- borderColor: '#435b22',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM1024",
- }, {
-
- name: "time1024StatesL",
- label: "QAM1024L",
- borderColor: '#435b22',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM1024L",
- }, {
- name: "time2048StatesS",
- label: "QAM2048S",
- borderColor: '#e87a5b',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM2048S",
- }, {
- name: "time2048States",
- label: "QAM2048",
- borderColor: '#e87a5b',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM2048",
- }, {
- name: "time2048StatesL",
- label: "QAM2048L",
- borderColor: '#e87a5b',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM2048L",
- }, {
- name: "time4096StatesS",
- label: "QAM4096S",
- borderColor: '#5be878',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM4096S",
- }, {
- name: "time4096States",
- label: "QAM4096",
- borderColor: '#5be878',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM4096",
- }, {
- name: "time4096StatesL",
- label: "QAM4096L",
- borderColor: '#5be878',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM4096L",
- }, {
- name: "time8192StatesS",
- label: "QAM8192s",
- borderColor: '#cb5be8',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM8192S",
- }, {
- name: "time8192States",
- label: "QAM8192",
- borderColor: '#cb5be8',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM8192",
- }, {
- name: "time8192StatesL",
- label: "QAM8192L",
- borderColor: '#cb5be8',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "QAM8192L",
- }
- ];
-
- _rows.forEach(row => {
- datasets.forEach(ds => {
- ds.data.push({
- x: row["utcTimeStamp" as keyof AdaptiveModulationDataType] as string,
- y: row[ds.name as keyof AdaptiveModulationDataType] as string
- });
- });
- });
-
- return {
- datasets: datasets
- };
- }
-}
-const AdaptiveModulation = withRouter(connect(mapProps, mapDisp)(AdaptiveModulationComponent));
-export default AdaptiveModulation;
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/crossPolarDiscrimination.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/crossPolarDiscrimination.tsx
deleted file mode 100644
index 8718171f7..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/crossPolarDiscrimination.tsx
+++ /dev/null
@@ -1,130 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import * as React from 'react';
-
-import { withRouter, RouteComponentProps } from 'react-router-dom';
-
-import { MaterialTable, ColumnType, MaterialTableCtorType, ColumnModel } from '../../../../framework/src/components/material-table';
-import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
-import connect, { Connect, IDispatcher } from '../../../../framework/src/flux/connect';
-
-import { CrossPolarDiscriminationDataType } from '../models/crossPolarDiscriminationDataType';
-import { IDataSet, IDataSetsObject } from '../models/chartTypes';
-import { createCrossPolarDiscriminationProperties, createCrossPolarDiscriminationActions } from '../handlers/crossPolarDiscriminationHandler';
-import { lineChart, sortDataByTimeStamp } from '../utils/chartUtils';
-import { addColumnLabels } from '../utils/tableUtils';
-
-const mapProps = (state: IApplicationStoreState) => ({
- crossPolarDiscriminationProperties: createCrossPolarDiscriminationProperties(state),
-});
-
-const mapDisp = (dispatcher: IDispatcher) => ({
- crossPolarDiscriminationActions: createCrossPolarDiscriminationActions(dispatcher.dispatch),
-});
-
-type CrossPolarDiscriminationComponentProps = RouteComponentProps & Connect<typeof mapProps, typeof mapDisp> & {
- selectedTimePeriod: string
-};
-
-const CrossPolarDiscriminationTable = MaterialTable as MaterialTableCtorType<CrossPolarDiscriminationDataType>;
-
-/**
- * The Component which gets the crossPolarDiscrimination data from the database based on the selected time period.
- */
-class CrossPolarDiscriminationComponent extends React.Component<CrossPolarDiscriminationComponentProps>{
- render(): JSX.Element {
- const properties = this.props.crossPolarDiscriminationProperties;
- const actions = this.props.crossPolarDiscriminationActions;
-
- const chartPagedData = this.getChartDataValues(properties.rows);
-
- const cpdColumns: ColumnModel<CrossPolarDiscriminationDataType>[] = [
- { property: "radioSignalId", title: "Radio signal", type: ColumnType.text },
- { property: "scannerId", title: "Scanner ID", type: ColumnType.text },
- { property: "utcTimeStamp", title: "End Time", type: ColumnType.text, disableFilter: true },
- {
- property: "suspectIntervalFlag", title: "Suspect Interval", type: ColumnType.custom, customControl: ({ rowData }) => {
- const suspectIntervalFlag = rowData["suspectIntervalFlag"].toString();
- return <div >{suspectIntervalFlag} </div>
- }
- }
- ];
-
- chartPagedData.datasets.forEach(ds => {
- cpdColumns.push(addColumnLabels<CrossPolarDiscriminationDataType>(ds.name, ds.columnLabel));
- });
- return (
- <>
- {lineChart(chartPagedData)}
- <CrossPolarDiscriminationTable idProperty={"_id"} columns={cpdColumns} {...properties} {...actions} />
- </>
- );
- };
-
- /**
- * This function gets the performance values for CPD according on the chartjs dataset structure
- * which is to be sent to the chart.
- */
- private getChartDataValues = (rows: CrossPolarDiscriminationDataType[]): IDataSetsObject => {
- const _rows = [...rows];
- sortDataByTimeStamp(_rows);
-
- const datasets: IDataSet[] = [{
- name: "xpdMin",
- label: "xpd-min",
- borderColor: '#0e17f3de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "CPD (min)[db]"
- }, {
- name: "xpdAvg",
- label: "xpd-avg",
- borderColor: '#08edb6de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "CPD (avg)[db]"
- }, {
- name: "xpdMax",
- label: "xpd-max",
- borderColor: '#b308edde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "CPD (max)[db]"
- }];
-
- _rows.forEach(row => {
- datasets.forEach(ds => {
- ds.data.push({
- x: row["utcTimeStamp" as keyof CrossPolarDiscriminationDataType] as string,
- y: row[ds.name as keyof CrossPolarDiscriminationDataType] as string
- });
- });
- });
- return {
- datasets: datasets
- };
- }
-}
-const CrossPolarDiscrimination = withRouter(connect(mapProps, mapDisp)(CrossPolarDiscriminationComponent));
-export default CrossPolarDiscrimination;
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/performanceData.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/performanceData.tsx
deleted file mode 100644
index fc44879dc..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/performanceData.tsx
+++ /dev/null
@@ -1,129 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import * as React from 'react';
-
-import { withRouter, RouteComponentProps } from 'react-router-dom';
-
-import { MaterialTable, ColumnType, ColumnModel, MaterialTableCtorType } from '../../../../framework/src/components/material-table';
-import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
-import connect, { Connect, IDispatcher } from '../../../../framework/src/flux/connect';
-import { PerformanceDataType } from '../models/performanceDataType';
-import { IDataSet, IDataSetsObject } from '../models/chartTypes';
-import { createPerformanceDataProperties, createPerformanceDataActions } from '../handlers/performanceDataHandler';
-import { lineChart, sortDataByTimeStamp } from '../utils/chartUtils';
-import { addColumnLabels } from '../utils/tableUtils';
-
-const mapProps = (state: IApplicationStoreState) => ({
- performanceDataProperties: createPerformanceDataProperties(state),
-});
-
-const mapDisp = (dispatcher: IDispatcher) => ({
- performanceDataActions: createPerformanceDataActions(dispatcher.dispatch),
-});
-
-type PerformanceDataComponentProps = RouteComponentProps & Connect<typeof mapProps, typeof mapDisp> & {
- selectedTimePeriod: string
-};
-
-const PerformanceDataTable = MaterialTable as MaterialTableCtorType<PerformanceDataType>;
-
-/**
- * The Component which gets the performance data from the database based on the selected time period.
- */
-class PerformanceDataComponent extends React.Component<PerformanceDataComponentProps>{
- render(): JSX.Element {
- const properties = this.props.performanceDataProperties;
- const actions = this.props.performanceDataActions;
-
- const chartPagedData = this.getChartDataValues(properties.rows);
- const performanceColumns: ColumnModel<PerformanceDataType>[] = [
- { property: "radioSignalId", title: "Radio signal", type: ColumnType.text },
- { property: "scannerId", title: "Scanner ID", type: ColumnType.text },
- { property: "utcTimeStamp", title: "End Time", type: ColumnType.text, disableFilter: true },
- {
- property: "suspectIntervalFlag", title: "Suspect Interval", type: ColumnType.custom, customControl: ({ rowData }) => {
- const suspectIntervalFlag = rowData["suspectIntervalFlag"].toString();
- return <div >{suspectIntervalFlag} </div>
- }
- }
- ];
-
- chartPagedData.datasets.forEach(ds => {
- performanceColumns.push(addColumnLabels<PerformanceDataType>(ds.name, ds.columnLabel));
- });
- return (
- <>
- {lineChart(chartPagedData)}
- <PerformanceDataTable idProperty={"_id"} columns={performanceColumns} {...properties} {...actions} />
- </>
- );
- };
-
- /**
- * This function gets the performance values for PerformanceData according on the chartjs dataset structure
- * which is to be sent to the chart.
- */
- private getChartDataValues = (rows: PerformanceDataType[]): IDataSetsObject => {
- const _rows = [...rows];
- sortDataByTimeStamp(_rows);
-
- const datasets: IDataSet[] = [{
- name: "es",
- label: "es",
- borderColor: '#0e17f3de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "ES"
- }, {
- name: "ses",
- label: "ses",
- borderColor: '#08edb6de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "SES"
- }, {
- name: "unavailability",
- label: "unavailability",
- borderColor: '#b308edde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "Unavailability"
- }];
-
- _rows.forEach(row => {
- datasets.forEach(ds => {
- ds.data.push({
- x: row["utcTimeStamp" as keyof PerformanceDataType] as string,
- y: row[ds.name as keyof PerformanceDataType] as string
- });
- });
- });
- return {
- datasets: datasets
- };
- }
-}
-
-const PerformanceData = withRouter(connect(mapProps, mapDisp)(PerformanceDataComponent));
-export default PerformanceData;
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/receiveLevel.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/receiveLevel.tsx
deleted file mode 100644
index 9992f5bd8..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/receiveLevel.tsx
+++ /dev/null
@@ -1,131 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import * as React from 'react';
-
-import { withRouter, RouteComponentProps } from 'react-router-dom';
-
-import { MaterialTable, ColumnType, ColumnModel, MaterialTableCtorType } from '../../../../framework/src/components/material-table';
-import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
-import connect, { Connect, IDispatcher } from '../../../../framework/src/flux/connect';
-
-import { ReceiveLevelDataType } from '../models/receiveLevelDataType';
-import { IDataSet, IDataSetsObject } from '../models/chartTypes';
-import { createReceiveLevelProperties, createReceiveLevelActions } from '../handlers/receiveLevelHandler';
-import { lineChart, sortDataByTimeStamp } from '../utils/chartUtils';
-import { addColumnLabels } from '../utils/tableUtils';
-
-const mapProps = (state: IApplicationStoreState) => ({
- receiveLevelProperties: createReceiveLevelProperties(state),
-});
-
-const mapDisp = (dispatcher: IDispatcher) => ({
- receiveLevelActions: createReceiveLevelActions(dispatcher.dispatch),
-});
-
-type ReceiveLevelComponentProps = RouteComponentProps & Connect<typeof mapProps, typeof mapDisp> & {
- selectedTimePeriod: string
-};
-
-const ReceiveLevelTable = MaterialTable as MaterialTableCtorType<ReceiveLevelDataType>;
-
-/**
- * The Component which gets the receiveLevel data from the database based on the selected time period.
- */
-class ReceiveLevelComponent extends React.Component<ReceiveLevelComponentProps>{
- render(): JSX.Element {
- const properties = this.props.receiveLevelProperties;
- const actions = this.props.receiveLevelActions;
-
- const chartPagedData = this.getChartDataValues(properties.rows);
- const receiveLevelColumns: ColumnModel<ReceiveLevelDataType>[] = [
- { property: "radioSignalId", title: "Radio signal", type: ColumnType.text },
- { property: "scannerId", title: "Scanner ID", type: ColumnType.text },
- { property: "utcTimeStamp", title: "End Time", type: ColumnType.text, disableFilter: true },
- {
- property: "suspectIntervalFlag", title: "Suspect Interval", type: ColumnType.custom, customControl: ({ rowData }) => {
- const suspectIntervalFlag = rowData["suspectIntervalFlag"].toString();
- return <div >{suspectIntervalFlag} </div>
- }
- }
- ];
-
- chartPagedData.datasets.forEach(ds => {
- receiveLevelColumns.push(addColumnLabels<ReceiveLevelDataType>(ds.name, ds.columnLabel));
- });
-
- return (
- <>
- {lineChart(chartPagedData)}
- <ReceiveLevelTable idProperty={"_id"} columns={receiveLevelColumns} {...properties} {...actions} />
- </>
- );
- };
-
- /**
- * This function gets the performance values for ReceiveLevel according on the chartjs dataset structure
- * which is to be sent to the chart.
- */
- private getChartDataValues = (rows: ReceiveLevelDataType[]): IDataSetsObject => {
- const _rows = [...rows];
- sortDataByTimeStamp(_rows);
-
- const datasets: IDataSet[] = [{
- name: "rxLevelMin",
- label: "rx-level-min",
- borderColor: '#0e17f3de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "Rx min"
- }, {
- name: "rxLevelAvg",
- label: "rx-level-avg",
- borderColor: '#08edb6de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "Rx avg"
- }, {
- name: "rxLevelMax",
- label: "rx-level-max",
- borderColor: '#b308edde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "Rx max"
- }];
-
- _rows.forEach(row => {
- datasets.forEach(ds => {
- ds.data.push({
- x: row["utcTimeStamp" as keyof ReceiveLevelDataType] as string,
- y: row[ds.name as keyof ReceiveLevelDataType] as string
- });
- });
- });
- return {
- datasets: datasets
- };
- }
-}
-
-const ReceiveLevel = withRouter(connect(mapProps, mapDisp)(ReceiveLevelComponent));
-export default ReceiveLevel;
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/signalToInterference.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/signalToInterference.tsx
deleted file mode 100644
index 98017ae2f..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/signalToInterference.tsx
+++ /dev/null
@@ -1,133 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import * as React from 'react';
-
-import { withRouter, RouteComponentProps } from 'react-router-dom';
-
-import { MaterialTable, ColumnType, ColumnModel, MaterialTableCtorType } from '../../../../framework/src/components/material-table';
-import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
-import connect, { Connect, IDispatcher } from '../../../../framework/src/flux/connect';
-
-import { SignalToInterferenceDataType } from '../models/signalToInteferenceDataType';
-import { IDataSet, IDataSetsObject } from '../models/chartTypes';
-import { createSignalToInterferenceProperties, createSignalToInterferenceActions } from '../handlers/signalToInterferenceHandler';
-import { lineChart, sortDataByTimeStamp } from '../utils/chartUtils';
-import { addColumnLabels } from '../utils/tableUtils';
-
-const mapProps = (state: IApplicationStoreState) => ({
- signalToInterferenceProperties: createSignalToInterferenceProperties(state),
-});
-
-const mapDisp = (dispatcher: IDispatcher) => ({
- signalToInterferenceActions: createSignalToInterferenceActions(dispatcher.dispatch),
-});
-
-type SignalToInterferenceComponentProps = RouteComponentProps & Connect<typeof mapProps, typeof mapDisp> & {
- selectedTimePeriod: string
-};
-
-const SignalToInterferenceTable = MaterialTable as MaterialTableCtorType<SignalToInterferenceDataType>;
-
-/**
- * The Component which gets the signal to interference data from the database based on the selected time period.
- */
-class SignalToInterferenceComponent extends React.Component<SignalToInterferenceComponentProps>{
- render(): JSX.Element {
- const properties = this.props.signalToInterferenceProperties;
- const actions = this.props.signalToInterferenceActions;
-
- const chartPagedData = this.getChartDataValues(properties.rows);
-
- const sinrColumns: ColumnModel<SignalToInterferenceDataType>[] = [
- { property: "radioSignalId", title: "Radio signal", type: ColumnType.text },
- { property: "scannerId", title: "Scanner ID", type: ColumnType.text },
- { property: "utcTimeStamp", title: "End Time", type: ColumnType.text, disableFilter: true },
- {
- property: "suspectIntervalFlag", title: "Suspect Interval", type: ColumnType.custom, customControl: ({ rowData }) => {
- const suspectIntervalFlag = rowData["suspectIntervalFlag"].toString();
- return <div >{suspectIntervalFlag} </div>
- }
- }
- ];
-
- chartPagedData.datasets.forEach(ds => {
- sinrColumns.push(addColumnLabels<SignalToInterferenceDataType>(ds.name, ds.columnLabel));
- });
- return (
- <>
- {lineChart(chartPagedData)}
- <SignalToInterferenceTable idProperty={"_id"} columns={sinrColumns} {...properties} {...actions}
- />
- </>
- );
- };
-
- /**
- * This function gets the performance values for SINR according on the chartjs dataset structure
- * which is to be sent to the chart.
- */
-
- private getChartDataValues = (rows: SignalToInterferenceDataType[]): IDataSetsObject => {
- const _rows = [...rows];
- sortDataByTimeStamp(_rows);
-
- const datasets: IDataSet[] = [{
- name: "snirMin",
- label: "snir-min",
- borderColor: '#0e17f3de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "SINR (min)[db]"
- }, {
- name: "snirAvg",
- label: "snir-avg",
- borderColor: '#08edb6de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "SINR (avg)[db]"
- }, {
- name: "snirMax",
- label: "snir-max",
- borderColor: '#b308edde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "SINR (max)[db]"
- }];
-
- _rows.forEach(row => {
- datasets.forEach(ds => {
- ds.data.push({
- x: row["utcTimeStamp" as keyof SignalToInterferenceDataType] as string,
- y: row[ds.name as keyof SignalToInterferenceDataType] as string
- });
- });
- });
- return {
- datasets: datasets
- };
- }
-}
-
-const SignalToInterference = withRouter(connect(mapProps, mapDisp)(SignalToInterferenceComponent));
-export default SignalToInterference;
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/temperature.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/temperature.tsx
deleted file mode 100644
index f1e62cf33..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/temperature.tsx
+++ /dev/null
@@ -1,131 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import * as React from 'react';
-
-import { withRouter, RouteComponentProps } from 'react-router-dom';
-
-import { MaterialTable, ColumnType, ColumnModel, MaterialTableCtorType } from '../../../../framework/src/components/material-table';
-import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
-import connect, { Connect, IDispatcher } from '../../../../framework/src/flux/connect';
-
-import { TemperatureDataType } from '../models/temperatureDataType';
-import { IDataSet, IDataSetsObject } from '../models/chartTypes';
-import { createTemperatureProperties, createTemperatureActions } from '../handlers/temperatureHandler';
-import { lineChart, sortDataByTimeStamp } from '../utils/chartUtils';
-import { addColumnLabels } from '../utils/tableUtils';
-
-const mapProps = (state: IApplicationStoreState) => ({
- temperatureProperties: createTemperatureProperties(state),
-});
-
-const mapDisp = (dispatcher: IDispatcher) => ({
- temperatureActions: createTemperatureActions(dispatcher.dispatch),
-});
-
-type TemperatureComponentProps = RouteComponentProps & Connect<typeof mapProps, typeof mapDisp> & {
- selectedTimePeriod: string
-};
-
-const TemperatureTable = MaterialTable as MaterialTableCtorType<TemperatureDataType>;
-
-/**
- * The Component which gets the temperature data from the database based on the selected time period.
- */
-class TemperatureComponent extends React.Component<TemperatureComponentProps>{
- render(): JSX.Element {
- const properties = this.props.temperatureProperties;
- const actions = this.props.temperatureActions;
-
- const chartPagedData = this.getChartDataValues(properties.rows);
- const temperatureColumns: ColumnModel<TemperatureDataType>[] = [
- { property: "radioSignalId", title: "Radio signal", type: ColumnType.text },
- { property: "scannerId", title: "Scanner ID", type: ColumnType.text },
- { property: "utcTimeStamp", title: "End Time", type: ColumnType.text, disableFilter: true },
- {
- property: "suspectIntervalFlag", title: "Suspect Interval", type: ColumnType.custom, customControl: ({ rowData }) => {
- const suspectIntervalFlag = rowData["suspectIntervalFlag"].toString();
- return <div >{suspectIntervalFlag} </div>
- }
- }
- ];
-
- chartPagedData.datasets.forEach(ds => {
- temperatureColumns.push(addColumnLabels<TemperatureDataType>(ds.name, ds.columnLabel));
- });
- return (
- <>
- {lineChart(chartPagedData)}
- <TemperatureTable idProperty={"_id"} columns={temperatureColumns} {...properties} {...actions} />
- </>
- );
- };
-
- /**
- * This function gets the performance values for Temperature according on the chartjs dataset structure
- * which is to be sent to the chart.
- */
-
- private getChartDataValues = (rows: TemperatureDataType[]): IDataSetsObject => {
- const _rows = [...rows];
- sortDataByTimeStamp(_rows);
-
- const datasets: IDataSet[] = [{
- name: "rfTempMin",
- label: "rf-temp-min",
- borderColor: '#0e17f3de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "Rf Temp Min[deg C]"
- }, {
- name: "rfTempAvg",
- label: "rf-temp-avg",
- borderColor: '#08edb6de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "Rf Temp Avg[deg C]"
- }, {
- name: "rfTempMax",
- label: "rf-temp-max",
- borderColor: '#b308edde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "Rf Temp Max[deg C]"
- }];
-
- _rows.forEach(row => {
- datasets.forEach(ds => {
- ds.data.push({
- x: row["utcTimeStamp" as keyof TemperatureDataType] as string,
- y: row[ds.name as keyof TemperatureDataType] as string
- });
- });
- });
- return {
- datasets: datasets
- };
- }
-}
-
-const Temperature = withRouter(connect(mapProps, mapDisp)(TemperatureComponent));
-export default Temperature;
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/transmissionPower.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/transmissionPower.tsx
deleted file mode 100644
index 8ec4561a4..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/components/transmissionPower.tsx
+++ /dev/null
@@ -1,133 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import * as React from 'react';
-
-import { withRouter, RouteComponentProps } from 'react-router-dom';
-
-import { MaterialTable, ColumnType, ColumnModel, MaterialTableCtorType } from '../../../../framework/src/components/material-table';
-import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
-import connect, { Connect, IDispatcher } from '../../../../framework/src/flux/connect';
-
-import { TransmissionPowerDataType } from '../models/transmissionPowerDataType';
-import { IDataSet, IDataSetsObject } from '../models/chartTypes';
-import { createTransmissionPowerProperties, createTransmissionPowerActions } from '../handlers/transmissionPowerHandler';
-import { lineChart, sortDataByTimeStamp } from '../utils/chartUtils';
-import { addColumnLabels } from '../utils/tableUtils';
-
-const mapProps = (state: IApplicationStoreState) => ({
- transmissionPowerProperties: createTransmissionPowerProperties(state),
-});
-
-const mapDisp = (dispatcher: IDispatcher) => ({
- transmissionPowerActions: createTransmissionPowerActions(dispatcher.dispatch),
-});
-
-type TransmissionPowerComponentProps = RouteComponentProps & Connect<typeof mapProps, typeof mapDisp> & {
- selectedTimePeriod: string
-}
-
-const TransmissionPowerTable = MaterialTable as MaterialTableCtorType<TransmissionPowerDataType>;
-
-/**
- * The Component which gets the transmission power data from the database based on the selected time period.
- */
-class TransmissionPowerComponent extends React.Component<TransmissionPowerComponentProps>{
- render(): JSX.Element {
- const properties = this.props.transmissionPowerProperties
- const actions = this.props.transmissionPowerActions
-
- const chartPagedData = this.getChartDataValues(properties.rows);
-
- const transmissionColumns: ColumnModel<TransmissionPowerDataType>[] = [
- { property: "radioSignalId", title: "Radio signal", type: ColumnType.text },
- { property: "scannerId", title: "Scanner ID", type: ColumnType.text },
- { property: "utcTimeStamp", title: "End Time", type: ColumnType.text, disableFilter: true },
- {
- property: "suspectIntervalFlag", title: "Suspect Interval", type: ColumnType.custom, customControl: ({ rowData }) => {
- const suspectIntervalFlag = rowData["suspectIntervalFlag"].toString();
- return <div >{suspectIntervalFlag} </div>
- }
- }
- ];
-
- chartPagedData.datasets.forEach(ds => {
- transmissionColumns.push(addColumnLabels<TransmissionPowerDataType>(ds.name, ds.columnLabel));
- });
-
- return (
- <>
- {lineChart(chartPagedData)}
- <TransmissionPowerTable idProperty={"_id"} columns={transmissionColumns} {...properties} {...actions} />
- </>
- );
- };
-
- /**
- * This function gets the performance values for TransmissionPower according on the chartjs dataset structure
- * which is to be sent to the chart.
- */
-
- private getChartDataValues = (rows: TransmissionPowerDataType[]): IDataSetsObject => {
- const _rows = [...rows];
- sortDataByTimeStamp(_rows);
-
- const datasets: IDataSet[] = [{
- name: "txLevelMin",
- label: "tx-level-min",
- borderColor: '#0e17f3de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "Tx min"
- }, {
- name: "txLevelAvg",
- label: "tx-level-avg",
- borderColor: '#08edb6de',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "Tx avg"
- }, {
- name: "txLevelMax",
- label: "tx-level-max",
- borderColor: '#b308edde',
- bezierCurve: false,
- lineTension: 0,
- fill: false,
- data: [],
- columnLabel: "Tx max"
- }];
-
- _rows.forEach(row => {
- datasets.forEach(ds => {
- ds.data.push({
- x: row["utcTimeStamp" as keyof TransmissionPowerDataType] as string,
- y: row[ds.name as keyof TransmissionPowerDataType] as string
- });
- });
- });
- return {
- datasets: datasets
- };
- }
-}
-
-const TransmissionPower = withRouter(connect(mapProps, mapDisp)(TransmissionPowerComponent));
-export default TransmissionPower;
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/adaptiveModulationHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/adaptiveModulationHandler.ts
deleted file mode 100644
index ba765c8cb..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/adaptiveModulationHandler.ts
+++ /dev/null
@@ -1,96 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { AdaptiveModulationDataType, AdaptiveModulationResult } from '../models/adaptiveModulationDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface IAdaptiveModulationState extends IExternalTableState<AdaptiveModulationDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for Adaptive modulation from historicalperformance database.
- */
-const adaptiveModulationSearchHandler = createSearchDataHandler<AdaptiveModulationResult, AdaptiveModulationDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- time2StatesS: hit._source["performance-data"]["time2-states-s"],
- time2States: hit._source["performance-data"]["time2-states"],
- time2StatesL: hit._source["performance-data"]["time2-states-l"],
- time4StatesS: hit._source["performance-data"]["time4-states-s"],
- time4States: hit._source["performance-data"]["time4-states"],
- time4StatesL: hit._source["performance-data"]["time4-states-l"],
- time16StatesS: hit._source["performance-data"]["time16-states-s"],
- time16States: hit._source["performance-data"]["time16-states"],
- time16StatesL: hit._source["performance-data"]["time16-states-l"],
- time32StatesS: hit._source["performance-data"]["time32-states-s"],
- time32States: hit._source["performance-data"]["time32-states"],
- time32StatesL: hit._source["performance-data"]["time32-states-l"],
- time64StatesS: hit._source["performance-data"]["time64-states-s"],
- time64States: hit._source["performance-data"]["time64-states"],
- time64StatesL: hit._source["performance-data"]["time64-states-l"],
- time128StatesS: hit._source["performance-data"]["time128-states-s"],
- time128States: hit._source["performance-data"]["time128-states"],
- time128StatesL: hit._source["performance-data"]["time128-states-l"],
- time256StatesS: hit._source["performance-data"]["time256-states-s"],
- time256States: hit._source["performance-data"]["time256-states"],
- time256StatesL: hit._source["performance-data"]["time256-states-l"],
- time512StatesS: hit._source["performance-data"]["time512-states-s"],
- time512States: hit._source["performance-data"]["time512-states"],
- time512StatesL: hit._source["performance-data"]["time512-states-l"],
- time1024StatesS: hit._source["performance-data"]["time1024-states-s"],
- time1024States: hit._source["performance-data"]["time1024-states"],
- time1024StatesL: hit._source["performance-data"]["time1024-states-l"],
- time2048StatesS: hit._source["performance-data"]["time2048-states-s"],
- time2048States: hit._source["performance-data"]["time2048-states"],
- time2048StatesL: hit._source["performance-data"]["time2048-states-l"],
- time4096StatesS: hit._source["performance-data"]["time4096-states-s"],
- time4096States: hit._source["performance-data"]["time4096-states"],
- time4096StatesL: hit._source["performance-data"]["time4096-states-l"],
- time8192StatesS: hit._source["performance-data"]["time8192-states-s"],
- time8192States: hit._source["performance-data"]["time8192-states"],
- time8192StatesL: hit._source["performance-data"]["time8192-states-l"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: adaptiveModulationActionHandler,
- createActions: createAdaptiveModulationActions,
- createProperties: createAdaptiveModulationProperties,
- createPreActions: createAdaptiveModulationPreActions,
- reloadAction: adaptiveModulationReloadAction,
-} = createExternal<AdaptiveModulationDataType>(adaptiveModulationSearchHandler, appState => appState.performanceHistory.adaptiveModulation);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/availableLtpsActionHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/availableLtpsActionHandler.ts
deleted file mode 100644
index 41aceca9f..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/availableLtpsActionHandler.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { IActionHandler } from '../../../../framework/src/flux/action';
-
-import {
- AllAvailableLtpsLoadedAction,
- LoadAllAvailableLtpsAction,
-} from '../actions/ltpAction';
-
-import { LtpIds } from '../models/availableLtps';
-
-export interface IAvailableLtpsState {
- distinctLtps: LtpIds[];
- busy: boolean;
-}
-
-const connectedNetworkElementsStateInit: IAvailableLtpsState = {
- distinctLtps: [],
- busy: false
-};
-
-export const availableLtpsActionHandler: IActionHandler<IAvailableLtpsState> = (state = connectedNetworkElementsStateInit, action) => {
- if (action instanceof LoadAllAvailableLtpsAction) {
-
- state = {
- ...state,
- busy: true
- };
-
- } else if (action instanceof AllAvailableLtpsLoadedAction) {
- if (!action.error && action.availableLtps) {
- state = {
- ...state,
- distinctLtps: action.availableLtps,
- busy: false
- };
- } else {
- state = {
- ...state,
- busy: false
- };
- }
- }
- return state;
-}; \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/connectedNetworkElementsActionHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/connectedNetworkElementsActionHandler.ts
deleted file mode 100644
index ee14063c2..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/connectedNetworkElementsActionHandler.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { IActionHandler } from '../../../../framework/src/flux/action';
-
-import { AllConnectedNetworkElementsLoadedAction, LoadAllConnectedNetworkElementsAction } from '../actions/connectedNetworkElementsActions';
-import { ConnectedNetworkElementIds } from '../models/connectedNetworkElements';
-
-export interface IConnectedNetworkElementsState {
- connectedNetworkElementIds: ConnectedNetworkElementIds[];
- busy: boolean;
-}
-
-const connectedNetworkElementsStateInit: IConnectedNetworkElementsState = {
- connectedNetworkElementIds: [],
- busy: false
-};
-
-export const connectedNetworkElementsActionHandler: IActionHandler<IConnectedNetworkElementsState> = (state = connectedNetworkElementsStateInit, action) => {
- if (action instanceof LoadAllConnectedNetworkElementsAction) {
-
- state = {
- ...state,
- busy: true
- };
-
- } else if (action instanceof AllConnectedNetworkElementsLoadedAction) {
- if (!action.error && action.connectedNetworkElementIds) {
- state = {
- ...state,
- connectedNetworkElementIds: action.connectedNetworkElementIds,
- busy: false
- };
- } else {
- state = {
- ...state,
- busy: false
- };
- }
- }
- return state;
-}; \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/crossPolarDiscriminationHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/crossPolarDiscriminationHandler.ts
deleted file mode 100644
index 074c97d91..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/crossPolarDiscriminationHandler.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { CrossPolarDiscriminationDataType, CrossPolarDiscriminationResult } from '../models/crossPolarDiscriminationDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface ICrossPolarDiscriminationState extends IExternalTableState<CrossPolarDiscriminationDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for CPD from historicalperformance database.
- */
-const crossPolarDiscriminationSearchHandler = createSearchDataHandler<CrossPolarDiscriminationResult, CrossPolarDiscriminationDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- xpdMin: hit._source["performance-data"]["xpd-min"],
- xpdAvg: hit._source["performance-data"]["xpd-avg"],
- xpdMax: hit._source["performance-data"]["xpd-max"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: crossPolarDiscriminationActionHandler,
- createActions: createCrossPolarDiscriminationActions,
- createProperties: createCrossPolarDiscriminationProperties,
- createPreActions: createCrossPolarDiscriminationPreActions,
- reloadAction: crossPolarDiscriminationReloadAction,
-} = createExternal<CrossPolarDiscriminationDataType>(crossPolarDiscriminationSearchHandler, appState => appState.performanceHistory.crossPolarDiscrimination);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceDataHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceDataHandler.ts
deleted file mode 100644
index 51b537fea..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceDataHandler.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import * as moment from 'moment';
-
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { PerformanceResult, PerformanceDataType } from '../models/performanceDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface IPerformanceDataState extends IExternalTableState<PerformanceDataType> { }
-
-/**
-* Creates elastic search material data fetch handler for performance data from historicalperformance15min database.
-*/
-const performanceDataSearchHandler = createSearchDataHandler<PerformanceResult, PerformanceDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- es: hit._source["performance-data"]["es"],
- ses: hit._source["performance-data"]["ses"],
- unavailability: hit._source["performance-data"]["unavailability"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: performanceDataActionHandler,
- createActions: createPerformanceDataActions,
- createProperties: createPerformanceDataProperties,
- createPreActions: createPerformanceDataPreActions,
- reloadAction: performanceDataReloadAction
-} = createExternal<PerformanceDataType>(performanceDataSearchHandler, appState => appState.performanceHistory.performanceData);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts
deleted file mode 100644
index 85ff01634..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/performanceHistoryRootHandler.ts
+++ /dev/null
@@ -1,105 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-// main state handler
-
-import { combineActionHandler } from '../../../../framework/src/flux/middleware';
-
-// ** do not remove **
-import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
-import { IActionHandler } from '../../../../framework/src/flux/action';
-
-import { IConnectAppStoreState } from '../../../connectApp/src/handlers/connectAppRootHandler';
-import { IPerformanceDataState, performanceDataActionHandler } from './performanceDataHandler';
-import { IReceiveLevelState, receiveLevelActionHandler } from './receiveLevelHandler';
-import { ITransmissionPowerState, transmissionPowerActionHandler } from './transmissionPowerHandler';
-import { IAdaptiveModulationState, adaptiveModulationActionHandler } from './adaptiveModulationHandler';
-import { ITemperatureState, temperatureActionHandler } from './temperatureHandler';
-import { ISignalToInterferenceState, signalToInterferenceActionHandler } from './signalToInterferenceHandler';
-import { ICrossPolarDiscriminationState, crossPolarDiscriminationActionHandler } from './crossPolarDiscriminationHandler';
-import { SetPanelAction } from '../actions/panelChangeActions';
-import { IConnectedNetworkElementsState, connectedNetworkElementsActionHandler } from './connectedNetworkElementsActionHandler';
-import { IAvailableLtpsState, availableLtpsActionHandler } from './availableLtpsActionHandler';
-import { PmDataInterval } from '../models/performanceDataType';
-import { TimeChangeAction } from '../actions/timeChangeAction';
-import { UpdateMountId } from '../actions/connectedNetworkElementsActions';
-
-export interface IPerformanceHistoryStoreState {
- mountId: string;
- networkElements: IConnectedNetworkElementsState;
- ltps: IAvailableLtpsState;
- performanceData: IPerformanceDataState;
- receiveLevel: IReceiveLevelState;
- transmissionPower: ITransmissionPowerState;
- adaptiveModulation: IAdaptiveModulationState;
- temperature: ITemperatureState;
- signalToInterference: ISignalToInterferenceState;
- crossPolarDiscrimination: ICrossPolarDiscriminationState;
- currentOpenPanel: string | null;
- pmDataIntervalType: PmDataInterval;
-}
-
-const mountIdHandler: IActionHandler<string> = (state = "", action) => {
- if (action instanceof UpdateMountId) {
- state = "";
- if (action.nodeId) {
- state = action.nodeId;
- }
- }
- return state;
-}
-
-
-const currentOpenPanelHandler: IActionHandler<string | null> = (state = null, action) => {
- if (action instanceof SetPanelAction) {
- state = action.panelId;
- }
- return state;
-}
-
-const currentPMDataIntervalHandler: IActionHandler<PmDataInterval> = (state = PmDataInterval.pmInterval15Min, action) => {
- if (action instanceof TimeChangeAction) {
- state = action.time;
- }
- return state;
-}
-
-declare module '../../../../framework/src/store/applicationStore' {
- interface IApplicationStoreState {
- performanceHistory: IPerformanceHistoryStoreState;
- connect: IConnectAppStoreState;
- }
-}
-
-const actionHandlers = {
- mountId: mountIdHandler,
- networkElements: connectedNetworkElementsActionHandler,
- ltps: availableLtpsActionHandler,
- performanceData: performanceDataActionHandler,
- receiveLevel: receiveLevelActionHandler,
- transmissionPower: transmissionPowerActionHandler,
- adaptiveModulation: adaptiveModulationActionHandler,
- temperature: temperatureActionHandler,
- signalToInterference: signalToInterferenceActionHandler,
- crossPolarDiscrimination: crossPolarDiscriminationActionHandler,
- currentOpenPanel: currentOpenPanelHandler,
- pmDataIntervalType: currentPMDataIntervalHandler
-};
-
-const performanceHistoryRootHandler = combineActionHandler<IPerformanceHistoryStoreState>(actionHandlers);
-export default performanceHistoryRootHandler;
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/receiveLevelHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/receiveLevelHandler.ts
deleted file mode 100644
index adb70b120..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/receiveLevelHandler.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { ReceiveLevelDataType, ReceiveLevelResult } from '../models/receiveLevelDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface IReceiveLevelState extends IExternalTableState<ReceiveLevelDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for receiveLevel from historicalperformance database.
- */
-const receiveLevelSearchHandler = createSearchDataHandler<ReceiveLevelResult, ReceiveLevelDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- rxLevelMin: hit._source["performance-data"]["rx-level-min"],
- rxLevelAvg: hit._source["performance-data"]["rx-level-avg"],
- rxLevelMax: hit._source["performance-data"]["rx-level-max"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: receiveLevelActionHandler,
- createActions: createReceiveLevelActions,
- createProperties: createReceiveLevelProperties,
- createPreActions: createReceiveLevelPreActions,
- reloadAction: receiveLevelReloadAction,
-} = createExternal<ReceiveLevelDataType>(receiveLevelSearchHandler, appState => appState.performanceHistory.receiveLevel);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/signalToInterferenceHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/signalToInterferenceHandler.ts
deleted file mode 100644
index aa75ba226..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/signalToInterferenceHandler.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { SignalToInterferenceDataType, SignalToInterferenceResult } from '../models/signalToInteferenceDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface ISignalToInterferenceState extends IExternalTableState<SignalToInterferenceDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for SINR from historicalperformance database.
- */
-const signalToInterferenceSearchHandler = createSearchDataHandler<SignalToInterferenceResult, SignalToInterferenceDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- snirMin: hit._source["performance-data"]["snir-min"],
- snirAvg: hit._source["performance-data"]["snir-avg"],
- snirMax: hit._source["performance-data"]["snir-max"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: signalToInterferenceActionHandler,
- createActions: createSignalToInterferenceActions,
- createProperties: createSignalToInterferenceProperties,
- createPreActions: createSignalToInterferencePreActions,
- reloadAction: signalToInterferenceReloadAction,
-} = createExternal<SignalToInterferenceDataType>(signalToInterferenceSearchHandler, appState => appState.performanceHistory.signalToInterference);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/temperatureHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/temperatureHandler.ts
deleted file mode 100644
index 8a9ae7025..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/temperatureHandler.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { TemperatureDataType, TemperatureResult } from '../models/temperatureDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface ITemperatureState extends IExternalTableState<TemperatureDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for Temperature from historicalperformance database.
- */
-const temperatureSearchHandler = createSearchDataHandler<TemperatureResult, TemperatureDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- rfTempMin: hit._source["performance-data"]["rf-temp-min"],
- rfTempAvg: hit._source["performance-data"]["rf-temp-avg"],
- rfTempMax: hit._source["performance-data"]["rf-temp-max"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: temperatureActionHandler,
- createActions: createTemperatureActions,
- createProperties: createTemperatureProperties,
- createPreActions: createTemperaturePreActions,
- reloadAction: temperatureReloadAction,
-} = createExternal<TemperatureDataType>(temperatureSearchHandler, appState => appState.performanceHistory.temperature);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/transmissionPowerHandler.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/transmissionPowerHandler.ts
deleted file mode 100644
index c2ad82183..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/handlers/transmissionPowerHandler.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { createExternal, IExternalTableState } from '../../../../framework/src/components/material-table/utilities';
-import { createSearchDataHandler } from '../../../../framework/src/utilities/elasticSearch';
-
-import { TransmissionPowerDataType, TransmissionPowerResult } from '../models/transmissionPowerDataType';
-import { getFilter } from '../utils/tableUtils';
-
-export interface ITransmissionPowerState extends IExternalTableState<TransmissionPowerDataType> { }
-
-/**
- * Creates elastic search material data fetch handler for Transmission power from historicalperformance database.
- */
-const transmissionPowerSearchHandler = createSearchDataHandler<TransmissionPowerResult, TransmissionPowerDataType>(
- getFilter,
- null,
- (hit) => ({
- _id: hit._id,
- radioSignalId: hit._source["radio-signal-id"],
- scannerId: hit._source["scanner-id"],
- utcTimeStamp: hit._source["time-stamp"],
- suspectIntervalFlag: hit._source["suspect-interval-flag"],
- txLevelMin: hit._source["performance-data"]["tx-level-min"],
- txLevelAvg: hit._source["performance-data"]["tx-level-avg"],
- txLevelMax: hit._source["performance-data"]["tx-level-max"],
- }),
- (pmDataEntry: string) => {
- switch (pmDataEntry) {
- case "radioSignalId":
- return "radio-signal-id";
- case "scannerId":
- return "scanner-id";
- case "utcTimeStamp":
- return "time-stamp"
- case "suspectIntervalFlag":
- return "suspect-interval-flag";
- }
- return pmDataEntry
- });
-
-export const {
- actionHandler: transmissionPowerActionHandler,
- createActions: createTransmissionPowerActions,
- createProperties: createTransmissionPowerProperties,
- createPreActions: createTransmissionPowerPreActions,
- reloadAction: transmissionPowerReloadAction,
-} = createExternal<TransmissionPowerDataType>(transmissionPowerSearchHandler, appState => appState.performanceHistory.transmissionPower);
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/index.html b/sdnr/wt/odlux/apps/performanceHistoryApp/src/index.html
deleted file mode 100644
index 8cb775be2..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/index.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <!-- <link rel="stylesheet" href="./vendor.css" > -->
- <title>PM History Application</title>
-</head>
-
-<body>
- <div id="app"></div>
- <script type="text/javascript" src="./require.js"></script>
- <script type="text/javascript" src="./config.js"></script>
- <script>
- // run the application
- require(["app", "connectApp", "performanceHistoryApp"], function (app, connectApp, performanceHistoryApp) {
- connectApp.register();
- performanceHistoryApp.register();
- app("./app.tsx").runApplication();
- });
- </script>
-</body>
-
-</html> \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/adaptiveModulationDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/adaptiveModulationDataType.ts
deleted file mode 100644
index 9c1d28986..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/adaptiveModulationDataType.ts
+++ /dev/null
@@ -1,118 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-export { HitEntry, Result } from '../../../../framework/src/models';
-
-/**
- * Represents Adaptive Modulation data fields of the performance history table.
- */
-export type AdaptiveModulationDatabaseDataType = {
- "time2-states-s": number;
- "time2-states": number;
- "time2-states-l": number;
- "time4-states-s": number;
- "time4-states": number;
- "time4-states-l": number;
- "time16-states-s": number;
- "time16-states": number;
- "time16-states-l": number;
- "time32-states-s": number;
- "time32-states": number;
- "time32-states-l": number;
- "time64-states-s": number;
- "time64-states": number;
- "time64-states-l": number;
- "time128-states-s": number;
- "time128-states": number;
- "time128-states-l": number;
- "time256-states-s": number;
- "time256-states": number;
- "time256-states-l": number;
- "time512-states-s": number;
- "time512-states": number;
- "time512-states-l": number;
- "time1024-states-s": number;
- "time1024-states": number;
- "time1024-states-l": number;
- "time2048-states-s": number;
- "time2048-states": number;
- "time2048-states-l": number;
- "time4096-states-s": number;
- "time4096-states": number;
- "time4096-states-l": number;
- "time8192-states-s": number;
- "time8192-states": number;
- "time8192-states-l": number;
-};
-
-/**
- * Represents Result type of database query
- */
-export type AdaptiveModulationResult = {
- "performance-data": AdaptiveModulationDatabaseDataType;
- "radio-signal-id": string;
- "scanner-id": string;
- "suspect-interval-flag": boolean;
- "time-stamp": string;
-};
-
-
-/**
- * Internally used type to provide table and chart data
- */
-export type AdaptiveModulationDataType = {
- radioSignalId: string;
- scannerId: string;
- utcTimeStamp: string;
- suspectIntervalFlag: boolean;
- "time2StatesS": number;
- "time2States": number;
- "time2StatesL": number;
- "time4StatesS": number;
- "time4States": number;
- "time4StatesL": number;
- "time16StatesS": number;
- "time16States": number;
- "time16StatesL": number;
- "time32StatesS": number;
- "time32States": number;
- "time32StatesL": number;
- "time64StatesS": number;
- "time64States": number;
- "time64StatesL": number;
- "time128StatesS": number;
- "time128States": number;
- "time128StatesL": number;
- "time256StatesS": number;
- "time256States": number;
- "time256StatesL": number;
- "time512StatesS": number;
- "time512States": number;
- "time512StatesL": number;
- "time1024StatesS": number;
- "time1024States": number;
- "time1024StatesL": number;
- "time2048StatesS": number;
- "time2048States": number;
- "time2048StatesL": number;
- "time4096StatesS": number;
- "time4096States": number;
- "time4096StatesL": number;
- "time8192StatesS": number;
- "time8192States": number;
- "time8192StatesL": number;
-} & { _id: string }; \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/availableLtps.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/availableLtps.ts
deleted file mode 100644
index fcf7ad5f6..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/availableLtps.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
- export type LtpIds = {
- key: string
- }
-
- export type Bucket<T>={
- buckets: T[]
- }
-
-/**
- * Represents distinct available ltps using elasticsearch aggregations structure.
- */
- export type DistinctLtp = {
- "uuid-interface": Bucket<LtpIds>
- }
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/chartTypes.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/chartTypes.ts
deleted file mode 100644
index 487cf029d..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/chartTypes.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-export interface IData {
- x: string;
- y: string;
-}
-
-/**
- * Structure of chartjs dataset with the chart properties.
- */
-export interface IDataSet {
- name: string,
- label: string,
- lineTension: 0,
- bezierCurve: boolean;
- fill: boolean,
- borderColor: string,
- data: IData[],
- columnLabel: string
-}
-
-/**
- * Structure of chartjs dataset which is sent to the chart.
- */
-export interface IDataSetsObject {
- datasets: IDataSet[]
-}
-
-/**
- * Interface used by chart for sorting on time-stamp
- */
-export interface ITimeStamp {
- "utcTimeStamp": string;
-}
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/connectedNetworkElements.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/connectedNetworkElements.ts
deleted file mode 100644
index b7277f777..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/connectedNetworkElements.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Represents connected network elements.
- */
-
-export type ConnectedNetworkElementIds = {
- mountId: string;
- }
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/crossPolarDiscriminationDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/crossPolarDiscriminationDataType.ts
deleted file mode 100644
index ef4415393..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/crossPolarDiscriminationDataType.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-export { HitEntry, Result } from '../../../../framework/src/models';
-
-
-/**
- * Represents Receive level data fields of the performance history table.
- */
-export type CrossPolarDiscriminationDatabaseDataType = {
- "xpd-min": number;
- "xpd-avg": number;
- "xpd-max": number;
-};
-
-/**
- * Represents Result type of database query
- */
-export type CrossPolarDiscriminationResult = {
- "performance-data": CrossPolarDiscriminationDatabaseDataType
- "radio-signal-id": string;
- "scanner-id": string;
- "suspect-interval-flag": boolean;
- "time-stamp": string;
-};
-
-/**
- * Internally used type to provide table and chart data
- */
-export type CrossPolarDiscriminationDataType = {
- radioSignalId: string;
- scannerId: string;
- utcTimeStamp: string;
- suspectIntervalFlag: boolean;
- xpdMin: number;
- xpdAvg: number;
- xpdMax: number;
-} & { _id: string };
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/panelId.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/panelId.ts
deleted file mode 100644
index 1f05b47cc..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/panelId.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * Represents PanelIds for the available Expansional panels.
- */
-export type PanelId = null | "PerformanceData" | "ReceiveLevel" | "TransmissionPower" | "AdaptiveModulation" | "Temperature" | "SINR" | "CPD"; \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/performanceDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/performanceDataType.ts
deleted file mode 100644
index 6af29c4a8..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/performanceDataType.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { Moment } from "moment";
-
-//export { HitEntry, Result } from '../../../../framework/src/models';
-
-/**
- * Represents performance data fields of the performance history table as used in the database
- */
-export type PerformanceDatabaseDataType = {
- "es": number;
- "ses": number;
- "unavailability": number;
-};
-
-
-/**
- * Represents Result type of database query
- */
-export type PerformanceResult = {
- "performance-data": PerformanceDatabaseDataType;
- "radio-signal-id": string;
- "scanner-id": string;
- "suspect-interval-flag": boolean;
- "time-stamp": string;
-};
-
-/**
- * Internally used type to provide table and chart data
- */
-export type PerformanceDataType = {
- radioSignalId: string;
- scannerId: string;
- utcTimeStamp: string;
- suspectIntervalFlag: boolean;
- es: number;
- ses: number;
- unavailability: number;
-} & { _id: string };
-
-
-/**
- * Represents performance data time interval.
- */
-export const enum PmDataInterval {
- pmInterval15Min,
- pmInterval24Hours
-} \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/receiveLevelDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/receiveLevelDataType.ts
deleted file mode 100644
index 836bf58d9..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/receiveLevelDataType.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-export { HitEntry, Result } from '../../../../framework/src/models';
-
-/**
- * Represents Receive level data fields of the performance history table.
- */
-export type ReceiveLevelDatabaseDataType = {
- "rx-level-min": number;
- "rx-level-avg": number;
- "rx-level-max": number;
-};
-
-/**
- * Represents Result type of database query
- */
-export type ReceiveLevelResult = {
- "performance-data": ReceiveLevelDatabaseDataType
- "radio-signal-id": string;
- "scanner-id": string;
- "suspect-interval-flag": boolean;
- "time-stamp": string;
-};
-
-/**
- * Internally used type to provide table and chart data
- */
-export type ReceiveLevelDataType = {
- radioSignalId: string;
- scannerId: string;
- utcTimeStamp: string;
- suspectIntervalFlag: boolean;
- rxLevelMin: number;
- rxLevelAvg: number;
- rxLevelMax: number;
-} & { _id: string };
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/signalToInteferenceDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/signalToInteferenceDataType.ts
deleted file mode 100644
index deb1d8f18..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/signalToInteferenceDataType.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-export { HitEntry, Result } from '../../../../framework/src/models';
-
-
-/**
- * Represents Receive level data fields of the performance history table.
- */
-export type SignalToInterferenceDatabaseDataType = {
- "snir-min": number;
- "snir-avg": number;
- "snir-max": number;
-};
-
-/**
- * Represents Result type of database query
- */
-export type SignalToInterferenceResult = {
- "performance-data": SignalToInterferenceDatabaseDataType
- "radio-signal-id": string;
- "scanner-id": string;
- "suspect-interval-flag": boolean;
- "time-stamp": string;
-};
-
-
-/**
- * Internally used type to provide table and chart data
- */
-export type SignalToInterferenceDataType = {
- radioSignalId: string;
- scannerId: string;
- utcTimeStamp: string;
- suspectIntervalFlag: boolean;
- snirMin: number;
- snirAvg: number;
- snirMax: number;
-} & { _id: string };
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/temperatureDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/temperatureDataType.ts
deleted file mode 100644
index dd3ce5253..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/temperatureDataType.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-export { HitEntry, Result } from '../../../../framework/src/models';
-
-
-/**
- * Represents Receive level data fields of the performance history table.
- */
-export type TemperatureDatabaseDataType = {
- "rf-temp-min": number;
- "rf-temp-avg": number;
- "rf-temp-max": number;
-};
-
-/**
- * Represents Result type of database query
- */
-export type TemperatureResult = {
- "performance-data": TemperatureDatabaseDataType
- "radio-signal-id": string;
- "scanner-id": string;
- "suspect-interval-flag": boolean;
- "time-stamp": string;
-};
-
-/**
- * Internally used type to provide table and chart data
- */
-export type TemperatureDataType = {
- radioSignalId: string;
- scannerId: string;
- utcTimeStamp: string;
- suspectIntervalFlag: boolean;
- rfTempMin: number;
- rfTempAvg: number;
- rfTempMax: number;
-} & { _id: string };
-
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/topologyNetConf.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/topologyNetConf.ts
deleted file mode 100644
index 6bd89411d..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/topologyNetConf.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-export interface TopologyNode {
- "node-id": string;
- "netconf-node-topology:connection-status": string;
-}
-
-/**
- * Represents restConf network element topology.
- */
-export interface Topology {
- "topology-id": string;
- "node": TopologyNode[];
-}
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/transmissionPowerDataType.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/transmissionPowerDataType.ts
deleted file mode 100644
index 2c31f5378..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/transmissionPowerDataType.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-export { HitEntry, Result } from '../../../../framework/src/models';
-
-
-/**
- * Represents Receive level data fields of the performance history table.
- */
-export type TransmissionPowerDatabaseDataType = {
- "tx-level-min": number;
- "tx-level-avg": number;
- "tx-level-max": number;
-};
-
-/**
- * Represents Result type of database query
- */
-export type TransmissionPowerResult = {
- "performance-data": TransmissionPowerDatabaseDataType
- "radio-signal-id": string;
- "scanner-id": string;
- "suspect-interval-flag": boolean;
- "time-stamp": string;
-};
-
-/**
- * Internally used type to provide table and chart data
- */
-export type TransmissionPowerDataType = {
- radioSignalId: string;
- scannerId: string;
- utcTimeStamp: string;
- suspectIntervalFlag: boolean;
- txLevelMin: number;
- txLevelAvg: number;
- txLevelMax: number;
-} & { _id: string };
-
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/plugin.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/plugin.tsx
deleted file mode 100644
index a3fa2dbfe..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/plugin.tsx
+++ /dev/null
@@ -1,111 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-
-import * as React from "react";
-import { faBook } from '@fortawesome/free-solid-svg-icons';
-
-import applicationManager from '../../../framework/src/services/applicationManager';
-
-import { withRouter, RouteComponentProps, Route, Switch, Redirect } from 'react-router-dom';
-import performanceHistoryRootHandler from './handlers/performanceHistoryRootHandler';
-import { PmDataInterval } from './models/performanceDataType';
-import PerformanceHistoryApplication from './views/performanceHistoryApplication';
-import { ApplicationStore } from '../../../framework/src/store/applicationStore';
-
-import connect, { Connect, IDispatcher } from '../../../framework/src/flux/connect';
-import { IApplicationStoreState } from "../../../framework/src/store/applicationStore";
-import { updateMountIdActionCreator } from "./actions/connectedNetworkElementsActions";
-
-let api: {
- readonly applicationStore: ApplicationStore | null;
- readonly applicationStoreInitialized: Promise<ApplicationStore>;
-}
-
-const mapProps = (state: IApplicationStoreState) => ({
-});
-
-const mapDisp = (dispatcher: IDispatcher) => ({
- updateMountId: (mountId: string) => dispatcher.dispatch(updateMountIdActionCreator(mountId))
-});
-
-let currentMountId: string | null = null;
-let lastUrl: string = "/performanceHistory";
-const PerformanceHistoryApplicationRouteAdapter = connect(mapProps, mapDisp)((props: RouteComponentProps<{ mountId?: string}> & Connect<typeof mapProps, typeof mapDisp>) => {
- let mountId: string = "";
- if (props.location.pathname !== lastUrl) {
- // ensure the asynchronus update will only be called once per path
- lastUrl = props.location.pathname;
- let index = lastUrl.lastIndexOf("performanceHistory/");
- if(index >= 0) {
- mountId = lastUrl.substr(index+19);
- } else {
- mountId = "";
- }
-
- window.setTimeout(async () => {
- // check if the mountId has changed
- if (currentMountId !== mountId) {
- currentMountId = mountId;
- await props.updateMountId(currentMountId);
- }
- });
- }
- return (
- <PerformanceHistoryApplication />
- );
-});
-
-const PerformanceHistoryRouterApp = withRouter((props: RouteComponentProps) => {
- props.history.action = "POP";
- return (
- <Switch>
- <Route path={`${props.match.path}/:mountId`} component={PerformanceHistoryApplicationRouteAdapter} />
- <Route path={`${props.match.path}`} component={PerformanceHistoryApplicationRouteAdapter} />
- <Redirect to={`${props.match.path}`} />
- </Switch>
- )
-});
-
-export function register() {
- api = applicationManager.registerApplication({
- name: "performanceHistory",
- icon: faBook,
- rootComponent: PerformanceHistoryRouterApp,
- rootActionHandler: performanceHistoryRootHandler,
- menuEntry: "Performance"
- });
-}
-
-export function setPmDataInterval(pmDataInterval: PmDataInterval): boolean {
- let reload: boolean = true;
- if (api && api.applicationStore) {
- if (api.applicationStore.state.performanceHistory.pmDataIntervalType !== pmDataInterval) {
- reload = true;
- }
- api.applicationStore.state.performanceHistory.pmDataIntervalType = pmDataInterval;
- }
- return reload;
-}
-
-
-export function getPmDataInterval(): PmDataInterval {
- let result = api && api.applicationStore
- ? api.applicationStore.state.performanceHistory.pmDataIntervalType
- : PmDataInterval.pmInterval15Min;
- return result ? result : PmDataInterval.pmInterval15Min;
-}
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/services/performanceHistoryService.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/services/performanceHistoryService.ts
deleted file mode 100644
index 0f3c89b83..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/services/performanceHistoryService.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { requestRest } from '../../../../framework/src/services/restService';
-import { Result } from '../../../../framework/src/models/elasticSearch';
-
-import { DistinctLtp, LtpIds } from '../models/availableLtps';
-
-/**
- * Represents a web api accessor service for Network elements actions.
- */
-class PerformanceService {
-
- /**
- * Get distinct ltps based on the selected network element and time period from the historicalperformance15min database table.
- */
- public async getDistinctLtpsFromDatabase(networkElement: string, selectedTimePeriod: string): Promise<LtpIds[] | null> {
- let path;
- const query = {
- "size": 0,
- "query": {
- "match": {
- "node-name": networkElement
- }
- },
- "aggs": {
- "uuid-interface": {
- "terms": {
- "field": "uuid-interface"
- }
- }
- }
- };
-
- if (selectedTimePeriod === "15min") {
- path = 'database/sdnperformance/historicalperformance15min/_search';
- } else {
- path = 'database/sdnperformance/historicalperformance24h/_search';
- }
-
- const result = await requestRest<Result<DistinctLtp>>(path, { method: "POST", body: JSON.stringify(query) });
- return result && result.aggregations && result.aggregations["uuid-interface"].buckets.map(ne => ({
- key: ne.key
- })) || null;
- }
-}
-
-export const PerformanceHistoryService = new PerformanceService();
-export default PerformanceHistoryService;
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/chartUtils.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/chartUtils.tsx
deleted file mode 100644
index 52b5ddb58..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/chartUtils.tsx
+++ /dev/null
@@ -1,75 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import * as React from 'react';
-import { IDataSetsObject } from '../models/chartTypes';
-import { Line } from 'react-chartjs-2';
-import * as moment from 'moment';
-import { ITimeStamp } from 'models/chartTypes';
-
-const style: React.CSSProperties = {
- height: "350px"
-}
-export const lineChart = (chartPagedData: IDataSetsObject) => {
- return (
- <div style={style}>
- <Line ref="chart" data={chartPagedData} options={{
- responsive: true,
- maintainAspectRatio: false,
- scales: {
- xAxes: [{
- type: 'time',
- time: {
- displayFormats: {
- 'second': 'DD MMM YYYY HH:mm:ss',
- 'minute': 'DD MMM YYYY HH:mm:ss',
- 'hour': 'DD MMM YYYY HH:mm:ss',
- 'year': 'DD MMM YYYY HH:mm:ss',
- },
- parser: function (date: string) {
- let offsetValue = new Date().getTimezoneOffset();
- var utcDate = moment(date, 'YYYY-MM-DDTHH:mm:ss').utcOffset(offsetValue).utc(false);
- return utcDate;
- }
- },
- display: true,
- scaleLabel: {
- display: true,
- labelString: 'Timestamp'
- }
- }],
- yAxes: [{
- ticks: {
- beginAtZero: true
- },
- scaleLabel: {
- display: true,
- labelString: 'Value'
- }
- }]
- }
- }} />
- </div>
- );
-}
-
-export const sortDataByTimeStamp = <T extends ITimeStamp>(_rows: T[]): T[] => {
- return (_rows.sort((a, b) => {
- const result = Date.parse(a["utcTimeStamp"]) - Date.parse(b["utcTimeStamp"]);
- return isNaN(result) ? 0 : result;
- }));
-} \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts
deleted file mode 100644
index 865d89c88..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import { ColumnType, ColumnModel } from '../../../../framework/src/components/material-table';
-
-import { PmDataInterval } from '../models/performanceDataType';
-import { getPmDataInterval } from '../plugin';
-
-export const addColumnLabels = <T>(name: string, title: string, disableFilter = true, disableSorting = true): ColumnModel<T> => {
- return { property: name as keyof T, title: title, type: ColumnType.text, disableFilter: disableFilter, disableSorting: disableSorting };
-}
-
-export function getFilter(): string {
- switch (getPmDataInterval()) {
- case PmDataInterval.pmInterval15Min:
- return "sdnperformance/historicalperformance15min";
- case PmDataInterval.pmInterval24Hours:
- return "sdnperformance/historicalperformance24h";
- default:
- throw new Error("Unknown time intervall");
- }
-} \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/views/performanceHistoryApplication.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/views/performanceHistoryApplication.tsx
deleted file mode 100644
index 218250d18..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/views/performanceHistoryApplication.tsx
+++ /dev/null
@@ -1,373 +0,0 @@
-/**
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt odlux
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- */
-import * as React from 'react';
-
-import { createStyles, Theme, withStyles, WithStyles } from '@material-ui/core/styles';
-import FormControl from '@material-ui/core/FormControl';
-import MenuItem from '@material-ui/core/MenuItem';
-import Select from '@material-ui/core/Select';
-
-import connect, { Connect, IDispatcher } from '../../../../framework/src/flux/connect';
-import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
-import { Panel } from '../../../../framework/src/components/material-ui';
-import { loadAllMountedNetworkElementsAsync } from '../../../connectApp/src/actions/mountedNetworkElementsActions';
-import { NavigateToApplication } from '../../../../framework/src/actions/navigationActions';
-import { Dispatch } from '../../../../framework/src/flux/store';
-
-import { PanelId } from '../models/panelId';
-import { PmDataInterval } from '../models/performanceDataType';
-import PerformanceData from '../components/performanceData';
-import ReceiveLevel from '../components/receiveLevel';
-import TransmissionPower from '../components/transmissionPower';
-import AdaptiveModulation from '../components/adaptiveModulation';
-import Temperature from '../components/temperature';
-import SignalToInterference from '../components/signalToInterference';
-import CrossPolarDiscrimination from '../components/crossPolarDiscrimination';
-import { loadAllConnectedNetworkElementsAsync } from '../actions/connectedNetworkElementsActions';
-import { TimeChangeAction } from '../actions/timeChangeAction';
-import { loadDistinctLtpsbyNetworkElementAsync } from '../actions/ltpAction';
-import { SetPanelAction } from '../actions/panelChangeActions';
-import { createPerformanceDataPreActions, performanceDataReloadAction, createPerformanceDataActions } from '../handlers/performanceDataHandler';
-import { createReceiveLevelPreActions, receiveLevelReloadAction, createReceiveLevelActions } from '../handlers/receiveLevelHandler';
-import { createTransmissionPowerPreActions, transmissionPowerReloadAction, createTransmissionPowerActions } from '../handlers/transmissionPowerHandler';
-import { createAdaptiveModulationPreActions, adaptiveModulationReloadAction, createAdaptiveModulationActions } from '../handlers/adaptiveModulationHandler';
-import { createTemperaturePreActions, temperatureReloadAction, createTemperatureActions } from '../handlers/temperatureHandler';
-import { createSignalToInterferencePreActions, signalToInterferenceReloadAction, createSignalToInterferenceActions } from '../handlers/signalToInterferenceHandler';
-import { createCrossPolarDiscriminationPreActions, crossPolarDiscriminationReloadAction, createCrossPolarDiscriminationActions } from '../handlers/crossPolarDiscriminationHandler';
-
-import { MaterialTable, MaterialTableCtorType } from '../../../../framework/src/components/material-table';
-
-const PerformanceHistoryComponentStyles = (theme: Theme) => createStyles({
- root: {
- display: "flex",
- flexWrap: "wrap",
- },
- margin: {
- margin: theme.spacing.unit,
- },
- display: {
- display: "inline-block"
- },
- selectDropdown: {
- borderRadius: 1,
- position: "relative",
- backgroundColor: theme.palette.background.paper,
- border: "1px solid #ced4da",
- fontSize: 16,
- width: "auto",
- padding: "5px 26px 5px 12px",
- transition: theme.transitions.create(["border-color", "box-shadow"]),
- }
-});
-
-const mapProps = (state: IApplicationStoreState) => ({
- ...state.performanceHistory,
- activePanel: state.performanceHistory.currentOpenPanel,
- availableLtps: state.performanceHistory.ltps.distinctLtps,
- networkElements: state.performanceHistory.networkElements.connectedNetworkElementIds
-});
-
-const mapDispatcher = (dispatcher: IDispatcher) => ({
- enableFilterPerformanceData: createPerformanceDataActions(dispatcher.dispatch),
- enableFilterReceiveLevel: createReceiveLevelActions(dispatcher.dispatch),
- enableFilterTransmissionPower: createTransmissionPowerActions(dispatcher.dispatch),
- enableFilterAdaptiveModulation: createAdaptiveModulationActions(dispatcher.dispatch),
- enableFilterTemperature: createTemperatureActions(dispatcher.dispatch),
- enableFilterSinr: createSignalToInterferenceActions(dispatcher.dispatch),
- enableFilterCpd: createCrossPolarDiscriminationActions(dispatcher.dispatch),
- reloadPerformanceData: () => dispatcher.dispatch(performanceDataReloadAction),
- reloadReceiveLevel: () => dispatcher.dispatch(receiveLevelReloadAction),
- reloadTransmissionPower: () => dispatcher.dispatch(transmissionPowerReloadAction),
- reloadAdaptiveModulation: () => dispatcher.dispatch(adaptiveModulationReloadAction),
- reloadTemperature: () => dispatcher.dispatch(temperatureReloadAction),
- reloadSignalToInterference: () => dispatcher.dispatch(signalToInterferenceReloadAction),
- reloadCrossPolarDiscrimination: () => dispatcher.dispatch(crossPolarDiscriminationReloadAction),
- performanceDataPreActions: createPerformanceDataPreActions(dispatcher.dispatch),
- receiveLevelPreActions: createReceiveLevelPreActions(dispatcher.dispatch),
- transmissionPowerPreActions: createTransmissionPowerPreActions(dispatcher.dispatch),
- adaptiveModulationPreActions: createAdaptiveModulationPreActions(dispatcher.dispatch),
- temperaturePreActions: createTemperaturePreActions(dispatcher.dispatch),
- signalToInterferencePreActions: createSignalToInterferencePreActions(dispatcher.dispatch),
- crossPolarDiscriminationPreActions: createCrossPolarDiscriminationPreActions(dispatcher.dispatch),
- getConnectedNetworkElementsIds: async () => {
- await dispatcher.dispatch(loadAllMountedNetworkElementsAsync)
- dispatcher.dispatch(loadAllConnectedNetworkElementsAsync);
- },
- getDistinctLtpsIds: (selectedNetworkElement: string, selectedTimePeriod: string, selectedLtp: string, selectFirstLtp?: Function, resetLTP?: Function) => dispatcher.dispatch(loadDistinctLtpsbyNetworkElementAsync(selectedNetworkElement, selectedTimePeriod, selectedLtp, selectFirstLtp, resetLTP)),
- setCurrentPanel: (panelId: PanelId) => dispatcher.dispatch(new SetPanelAction(panelId)),
- timeIntervalChange: (time: PmDataInterval) => dispatcher.dispatch(new TimeChangeAction(time)),
- changeNode: (nodeId: string) => dispatcher.dispatch((dispatch: Dispatch) => {
- dispatch(new NavigateToApplication("performanceHistory", nodeId));
- })
-});
-
-export type NetworkElementType = {
- mountId: string,
-}
-const NetworkElementTable = MaterialTable as MaterialTableCtorType<NetworkElementType>;
-
-type PerformanceHistoryComponentProps = Connect<typeof mapProps, typeof mapDispatcher> & WithStyles<typeof PerformanceHistoryComponentStyles>;
-
-type PerformanceHistoryComponentState = {
- selectedNetworkElement: string,
- selectedTimePeriod: string,
- selectedLtp: string,
- showNetworkElementsTable: boolean,
- showLtps: boolean,
- showPanels: boolean
-};
-
-/**
-* Represents the component for Performance history application.
-*/
-class PerformanceHistoryComponent extends React.Component<PerformanceHistoryComponentProps, PerformanceHistoryComponentState>{
- /**
- * Initialises this instance
- */
- constructor(props: PerformanceHistoryComponentProps) {
- super(props);
- this.state = {
- selectedNetworkElement: "-1",
- selectedTimePeriod: "15min",
- selectedLtp: "-1",
- showNetworkElementsTable: true,
- showLtps: false,
- showPanels: false
- };
- }
-
- onTogglePanel = (panelId: PanelId) => {
- const nextActivePanel = panelId === this.props.activePanel ? null : panelId;
- this.props.setCurrentPanel(nextActivePanel);
- switch (nextActivePanel) {
- case "PerformanceData":
- this.props.reloadPerformanceData();
- break;
- case "ReceiveLevel":
- this.props.reloadReceiveLevel();
- break;
- case "TransmissionPower":
- this.props.reloadTransmissionPower();
- break;
- case "AdaptiveModulation":
- this.props.reloadAdaptiveModulation();
- break;
- case "Temperature":
- this.props.reloadTemperature();
- break;
- case "SINR":
- this.props.reloadSignalToInterference();
- break;
- case "CPD":
- this.props.reloadCrossPolarDiscrimination();
- break;
- default:
- // do nothing if all panels are closed
- break;
- }
- }
-
- render(): JSX.Element {
- const { classes } = this.props;
- const { activePanel, mountId } = this.props;
- if (mountId === "") {
- return (
- <>
- <h2>Please select the network element !</h2>
- <NetworkElementTable idProperty={"mountId"} rows={ this.props.networkElements } asynchronus
- onHandleClick={(event, rowData) => { this.handleNetworkElementSelect(rowData.mountId) }} columns={
- [{ property: "mountId" }]
- } />
- </>
- )
- }
- else {
- this.handleURLChange(mountId);
- return (
- <>
- <h2>Selected Network Element: { this.state.selectedNetworkElement } </h2>
- { this.state.showLtps && (
- <div>
- <FormControl className={ classes.display }>
- <span>
- Select LTP
- </span>
- <Select className={ classes.selectDropdown } value={ this.state.selectedLtp } onChange={ this.handleLtpChange } >
- <MenuItem value={ "-1" }><em>--Select--</em></MenuItem>
- { this.props.availableLtps.map(ltp =>
- (<MenuItem value={ ltp.key } key={ ltp.key }>{ ltp.key }</MenuItem>)) }
- </Select>
- <span> Time-Period </span>
- <Select className={ classes.selectDropdown } value={ this.state.selectedTimePeriod } onChange={ this.handleTimePeriodChange } >
- <MenuItem value={ "15min" }>15min</MenuItem>
- <MenuItem value={ "24hours" }>24hours</MenuItem>
- </Select>
- </FormControl>
- { this.state.showPanels && (
- <div>
- <Panel activePanel={ activePanel } panelId={ "PerformanceData" } onToggle={ this.onTogglePanel } title={ "Performance Data" }>
- <PerformanceData selectedTimePeriod={ this.state.selectedTimePeriod } />
- </Panel>
- <Panel activePanel={ activePanel } panelId={ "ReceiveLevel" } onToggle={ this.onTogglePanel } title={ "Receive Level" }>
- <ReceiveLevel selectedTimePeriod={ this.state.selectedTimePeriod } />
- </Panel>
- <Panel activePanel={ activePanel } panelId={ "TransmissionPower" } onToggle={ this.onTogglePanel } title={ "Transmission Power" }>
- <TransmissionPower selectedTimePeriod={ this.state.selectedTimePeriod } />
- </Panel>
- <Panel activePanel={ activePanel } panelId={ "AdaptiveModulation" } onToggle={ this.onTogglePanel } title={ "Adaptive Modulation" }>
- <AdaptiveModulation selectedTimePeriod={ this.state.selectedTimePeriod } />
- </Panel>
- <Panel activePanel={ activePanel } panelId={ "Temperature" } onToggle={ this.onTogglePanel } title={ "Temperature" }>
- <Temperature selectedTimePeriod={ this.state.selectedTimePeriod } />
- </Panel>
- <Panel activePanel={ activePanel } panelId={ "SINR" } onToggle={ this.onTogglePanel } title={ "Signal-to-interference-plus-noise ratio (SINR)" }>
- <SignalToInterference selectedTimePeriod={ this.state.selectedTimePeriod } />
- </Panel>
- <Panel activePanel={ activePanel } panelId={ "CPD" } onToggle={ this.onTogglePanel } title={ "Cross Polar Discrimination" }>
- <CrossPolarDiscrimination selectedTimePeriod={ this.state.selectedTimePeriod } />
- </Panel>
- </div>
- )}
- </div>
- )}
- </>
- );
- }
- };
-
- public componentDidMount() {
- this.props.getConnectedNetworkElementsIds();
- this.props.enableFilterPerformanceData.onToggleFilter();
- this.props.enableFilterReceiveLevel.onToggleFilter();
- this.props.enableFilterTransmissionPower.onToggleFilter();
- this.props.enableFilterTemperature.onToggleFilter();
- this.props.enableFilterAdaptiveModulation.onToggleFilter();
- this.props.enableFilterSinr.onToggleFilter();
- this.props.enableFilterCpd.onToggleFilter();
- }
-
- /**
- * Function which selects the first ltp returned from the database on selection of network element.
- */
- private selectFirstLtp = (firstLtp: string) => {
- this.setState({
- showPanels: true,
- selectedLtp: firstLtp
- });
- this.preFilterChangeAndReload(this.state.selectedNetworkElement, this.state.selectedTimePeriod, firstLtp);
- }
-
- /**
- * A function which loads the tables based on prefilters defined by network element and ltp on selected time period.
- */
- private preFilterChangeAndReload = (networkElement: string, timePeriod: string, ltp: string) => {
- const preFilter = {
- "node-name": networkElement,
- "uuid-interface": ltp
- };
- this.props.performanceDataPreActions.onPreFilterChanged(preFilter);
- this.props.receiveLevelPreActions.onPreFilterChanged(preFilter);
- this.props.transmissionPowerPreActions.onPreFilterChanged(preFilter);
- this.props.adaptiveModulationPreActions.onPreFilterChanged(preFilter);
- this.props.temperaturePreActions.onPreFilterChanged(preFilter);
- this.props.signalToInterferencePreActions.onPreFilterChanged(preFilter);
- this.props.crossPolarDiscriminationPreActions.onPreFilterChanged(preFilter);
-
- }
-
- /**
- * Function which handles network element changes.
- */
- private handleNetworkElementSelect = (selectedNetworkElement: string) => {
-
- this.setState({
- showLtps: true,
- selectedNetworkElement: selectedNetworkElement,
- showNetworkElementsTable: false,
- showPanels: false,
- selectedLtp: "-1"
- });
- this.props.changeNode(selectedNetworkElement);
- this.props.getDistinctLtpsIds(selectedNetworkElement, this.state.selectedTimePeriod, "-1", this.selectFirstLtp);
-}
-
-private handleURLChange = (selectedNetworkElement: string) => {
- if(selectedNetworkElement !== this.state.selectedNetworkElement) {
- this.setState({
- showLtps: true,
- selectedNetworkElement: selectedNetworkElement,
- showPanels: false,
- selectedLtp: "-1"
- });
- this.props.getDistinctLtpsIds(selectedNetworkElement, this.state.selectedTimePeriod, "-1", this.selectFirstLtp);
- }
-}
-
-/**
- * Function which resets the ltps to "--select--" in the state if the passed parameter @ltpNotSelected is true.
- * @param ltpNotSelected: true, if existing selected is not available in the given time period, else false
- */
- private resetLtpDropdown = (ltpNotSelected: boolean) => {
- if (ltpNotSelected) {
- this.setState({
- selectedLtp: "-1",
- });
- }
- }
-
- /**
- * Function which handles the time period changes.
- */
- private handleTimePeriodChange = (event: React.ChangeEvent<HTMLSelectElement>) => {
- const selectedTimeInterval = event.target.value === "15min"
- ? PmDataInterval.pmInterval15Min
- : PmDataInterval.pmInterval24Hours
-
- this.setState({
- selectedTimePeriod: event.target.value,
- });
- this.props.timeIntervalChange(selectedTimeInterval);
- this.props.reloadPerformanceData();
- this.props.reloadReceiveLevel();
- this.props.reloadTransmissionPower();
- this.props.reloadAdaptiveModulation();
- this.props.reloadTemperature();
- this.props.reloadSignalToInterference();
- this.props.reloadCrossPolarDiscrimination();
- this.props.getDistinctLtpsIds(this.state.selectedNetworkElement, event.target.value, this.state.selectedLtp, undefined, this.resetLtpDropdown);
- this.preFilterChangeAndReload(this.state.selectedNetworkElement, event.target.value, this.state.selectedLtp);
- }
-
- /**
- * Function which handles the ltp changes.
- */
- private handleLtpChange = (event: React.ChangeEvent<HTMLSelectElement>) => {
- var showPanels: boolean = true;
- if (event.target.value === "-1") {
- showPanels = false;
- }
- this.setState({
- showPanels: showPanels,
- selectedLtp: event.target.value
- });
- this.preFilterChangeAndReload(this.state.selectedNetworkElement, this.state.selectedTimePeriod, event.target.value);
- }
-}
-
-const PerformanceHistoryApplication = withStyles(PerformanceHistoryComponentStyles)(connect(mapProps, mapDispatcher)(PerformanceHistoryComponent));
-export default PerformanceHistoryApplication;
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src2/main/java/org/onap/ccsdk/features/sdnr/wt/odlux/bundles/MyOdluxBundle.java b/sdnr/wt/odlux/apps/performanceHistoryApp/src2/main/java/org/onap/ccsdk/features/sdnr/wt/odlux/bundles/MyOdluxBundle.java
deleted file mode 100644
index 1e882fc69..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src2/main/java/org/onap/ccsdk/features/sdnr/wt/odlux/bundles/MyOdluxBundle.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- ******************************************************************************/
-package org.onap.ccsdk.features.sdnr.wt.odlux.bundles;
-
-import org.onap.ccsdk.features.sdnr.wt.odlux.model.bundles.OdluxBundle;
-import org.onap.ccsdk.features.sdnr.wt.odlux.model.bundles.OdluxBundleLoader;
-
-public class MyOdluxBundle extends OdluxBundle {
-
- @Override
- public void initialize() {
- super.initialize();
- }
-
- @Override
- public void clean() {
- super.clean();
- }
-
- @Override
- public String getResourceFileContent(String filename) {
- return super.getResourceFileContent(filename);
- }
-
- @Override
- public boolean hasResource(String filename) {
- return super.hasResource(filename);
- }
-
- @Override
- public void setBundleName(String bundleName) {
- super.setBundleName(bundleName);
- }
-
- @Override
- public void setLoader(OdluxBundleLoader loader) {
- super.setLoader(loader);
- }
-
- @Override
- public String getBundleName() {
- return super.getBundleName();
- }
-
- @Override
- public OdluxBundleLoader getLoader() {
- return super.getLoader();
- }
-
- public MyOdluxBundle() {
- super();
- }
-}
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src2/main/resources/OSGI-INF/blueprint/blueprint.xml b/sdnr/wt/odlux/apps/performanceHistoryApp/src2/main/resources/OSGI-INF/blueprint/blueprint.xml
deleted file mode 100644
index 1bcbf0127..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src2/main/resources/OSGI-INF/blueprint/blueprint.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
- <reference id="loadersvc" availability="mandatory" activation="eager" interface="org.onap.ccsdk.features.sdnr.wt.odlux.model.bundles.OdluxBundleLoader"/>
-
- <bean id="bundle" init-method="initialize" destroy-method="clean" class="org.onap.ccsdk.features.sdnr.wt.odlux.bundles.MyOdluxBundle">
- <property name="loader" ref="loadersvc"/>
- <property name="bundleName" value="performanceHistoryApp"/>
- <property name="index" value="55"/>
- </bean>
-</blueprint>
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src2/test/java/org/onap/ccsdk/features/sdnr/wt/odlux/bundles/test/TestBundleRes.java b/sdnr/wt/odlux/apps/performanceHistoryApp/src2/test/java/org/onap/ccsdk/features/sdnr/wt/odlux/bundles/test/TestBundleRes.java
deleted file mode 100644
index edf68e096..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src2/test/java/org/onap/ccsdk/features/sdnr/wt/odlux/bundles/test/TestBundleRes.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * ============LICENSE_START========================================================================
- * ONAP : ccsdk feature sdnr wt
- * =================================================================================================
- * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
- * =================================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- * ============LICENSE_END==========================================================================
- ******************************************************************************/
-package org.onap.ccsdk.features.sdnr.wt.odlux.bundles.test;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-import org.onap.ccsdk.features.sdnr.wt.odlux.OdluxBundleLoaderImpl;
-import org.onap.ccsdk.features.sdnr.wt.odlux.bundles.MyOdluxBundle;
-
-public class TestBundleRes {
-
- @Test
- public void test() {
- OdluxBundleLoaderImpl loader = OdluxBundleLoaderImpl.getInstance();
- MyOdluxBundle b = new MyOdluxBundle();
- b.setLoader(loader);
- b.setIndex(0);
- b.setBundleName("abc");
- b.initialize();
- assertTrue(loader.getNumberOfBundles()==1);
- assertNotNull(b.getLoader());
- assertEquals("abc",b.getBundleName());
- assertTrue(b.hasResource("test.js"));
- assertNotNull(b.getResourceFileContent("test.js"));
- b.clean();
- assertTrue(loader.getNumberOfBundles()==0);
- }
-
-}
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src2/test/resources/test.js b/sdnr/wt/odlux/apps/performanceHistoryApp/src2/test/resources/test.js
deleted file mode 100644
index b47fdc39f..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src2/test/resources/test.js
+++ /dev/null
@@ -1,5 +0,0 @@
-asdac sad
-as
-d
-sad
- sadfa \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/tsconfig.json b/sdnr/wt/odlux/apps/performanceHistoryApp/tsconfig.json
deleted file mode 100644
index a66b5d828..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/tsconfig.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "compilerOptions": {
- "baseUrl": "./src",
- "outDir": "./dist",
- "sourceMap": true,
- "forceConsistentCasingInFileNames": true,
- "allowSyntheticDefaultImports": false,
- "allowUnreachableCode": false,
- "allowUnusedLabels": false,
- "noFallthroughCasesInSwitch": true,
- "noImplicitAny": true,
- "noImplicitReturns": true,
- "noImplicitThis": true,
- "strictNullChecks": true,
- "pretty": true,
- "newLine": "LF",
- "module": "es2015",
- "target": "es2016",
- "moduleResolution": "node",
- "experimentalDecorators": true,
- "jsx": "preserve",
- "lib": [
- "dom",
- "es2015",
- "es2016"
- ],
- "types": [
- "prop-types",
- "react",
- "react-dom"
- ]
- },
- "exclude": [
- "dist",
- "node_modules"
- ]
-}
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/webpack.config.js b/sdnr/wt/odlux/apps/performanceHistoryApp/webpack.config.js
deleted file mode 100644
index 27a5949ac..000000000
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/webpack.config.js
+++ /dev/null
@@ -1,139 +0,0 @@
-/**
- * Webpack 4 configuration file
- * see https://webpack.js.org/configuration/
- * see https://webpack.js.org/configuration/dev-server/
- */
-
-"use strict";
-
-const path = require("path");
-const webpack = require("webpack");
-const CopyWebpackPlugin = require("copy-webpack-plugin");
-const TerserPlugin = require('terser-webpack-plugin');
-
-// const __dirname = (path => path.replace(/^([a-z]\:)/, c => c.toUpperCase()))(process.__dirname());
-
-module.exports = (env) => {
- const distPath = path.resolve(__dirname, env === "release" ? "." : "../..", "dist");
- const frameworkPath = path.resolve(__dirname, env === "release" ? "../../framework" : "../..", "dist");
- return [{
- name: "App",
-
- mode: "none", //disable default behavior
-
- target: "web",
-
- context: path.resolve(__dirname, "src"),
-
- entry: {
- performanceHistoryApp: ["./plugin.tsx"]
- },
-
- devtool: env === "release" ? false : "source-map",
-
- resolve: {
- extensions: [".ts", ".tsx", ".js", ".jsx"]
- },
-
- output: {
- path: distPath,
- filename: "[name].js",
- library: "[name]",
- libraryTarget: "umd2",
- chunkFilename: "[name].js"
- },
- module: {
- rules: [{
- test: /\.tsx?$/,
- exclude: /node_modules/,
- use: [{
- loader: "babel-loader"
- }, {
- loader: "ts-loader"
- }]
- }, {
- test: /\.jsx?$/,
- exclude: /node_modules/,
- use: [{
- loader: "babel-loader"
- }]
- }]
- },
-
- optimization: {
- noEmitOnErrors: true,
- namedModules: env !== "release",
- minimize: env === "release",
- minimizer: env !== "release" ? [] : [new TerserPlugin({
- terserOptions: {
- warnings: false, // false, true, "verbose"
- compress: {
- drop_console: true,
- drop_debugger: true,
- }
- }
- })],
- },
- plugins: [
- new webpack.DllReferencePlugin({
- context: path.resolve(__dirname, "../../framework/src"),
- manifest: require(path.resolve(frameworkPath, "vendor-manifest.json")),
- sourceType: "umd2"
- }),
- new webpack.DllReferencePlugin({
- context: path.resolve(__dirname, "../../framework/src"),
- manifest: require(path.resolve(frameworkPath, "app-manifest.json")),
- sourceType: "umd2"
- }),
- ...(env === "release") ? [
- new webpack.DefinePlugin({
- "process.env": {
- NODE_ENV: "'production'",
- VERSION: JSON.stringify(require("./package.json").version)
- }
- }),
- ] : [
- new webpack.DefinePlugin({
- "process.env": {
- NODE_ENV: "'development'",
- VERSION: JSON.stringify(require("./package.json").version)
- }
- }),
- new CopyWebpackPlugin([{
- from: 'index.html',
- to: distPath
- }]),
- ]
- ],
-
- devServer: {
- public: "http://localhost:3100",
- contentBase: frameworkPath,
-
- compress: true,
- headers: {
- "Access-Control-Allow-Origin": "*"
- },
- host: "0.0.0.0",
- port: 3100,
- disableHostCheck: true,
- historyApiFallback: true,
- inline: true,
- hot: false,
- quiet: false,
- stats: {
- colors: true
- },
- proxy: {
- "/restconf": {
- target: "http://localhost:8181",
- secure: false
- },
- "/database": {
- target: "http://localhost:8181",
- secure: false
- }
- }
- }
- }];
-}