x,Flap3 +45.13.3,Cameo Ingestion,Pilot shall set flaps of Aerodynamics to Disable when mode of OPERATION is Climb and altitude of aircraft > z,Flap4 +45.13.4,Cameo Ingestion,Flap angle shall not exceed 40 degrees when mode of OPERATION is Final Approach,Flap5 +45.13.5,Cameo Ingestion,Pilot shall set flaps of Aerodynamics to P degrees when mode of OPERATION is After landing roll and speed of aircraft
- - \ No newline at end of file + + + + + + + + +- - - - -+ + + + + + ++ + ++ + ++ + ++ + ++ + ++ + ++ + ++ ++ ++ ++ ++ + + ++ ++ + + ++ ++ + + ++ + + ++ + ++ + ++ + ++ + ++ + ++ + ++ ++ ++ + ++ + + ++ ++ ++ + ++ ++ + ++ + + + ++ ++ ++ + ++ ++ + ++ + + + ++ + ++ + ++ ++ ++ ++ ++ ++ + ++ ++ + ++ + ++ + ++ ++ ++ + ++ + + + + - - -+ + + + ++ + ++ + - - - - -- - -- - -- -- -- - -- - - -- -- -- - -- -- - -- - - - -- -- -- - -- -- - -- - - - -- - -- - -- -- -- -- -- -- - -- -- - -- - -- - -- -- -- - -- - - - - - - -- - - - -- - -- - - - -- -- -- - -- -- -- -- -- -- -- -- -- - - - -- -- -- -- -- -- -- -- -- -- - - -- -- -- -- -- -- -- - -- - - - -- -- -- -- -- -- - -- - -- - -- -- - -- -- -- - -- -- - - - - -- -- -- -- -- - -- -- - - - -- -- -- -- - -- -- - - - - -- -- -- -- -- -- -- -- -- -- - -- - - -- -+ + ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + ++ ++ ++ ++ ++ ++ ++ + ++ + + + ++ ++ ++ ++ ++ ++ + ++ + ++ + ++ ++ + ++ ++ ++ + ++ ++ + + + + ++ ++ ++ ++ ++ + ++ ++ + + + ++ ++ ++ ++ + ++ ++ + + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + ++ + + + diff --git a/tools/rack/rack.plugin/src/com/ge/research/rack/arp4754/TestApp.java b/tools/rack/rack.plugin/src/com/ge/research/rack/arp4754/TestApp.java index e2899688..e640e8be 100644 --- a/tools/rack/rack.plugin/src/com/ge/research/rack/arp4754/TestApp.java +++ b/tools/rack/rack.plugin/src/com/ge/research/rack/arp4754/TestApp.java @@ -32,6 +32,8 @@ package com.ge.research.rack.arp4754; import com.ge.research.rack.arp4754.logic.DataProcessor; +import com.ge.research.rack.arp4754.viewManagers.Arp4754ViewsManager; +import com.ge.research.rack.autoGsn.utils.CustomFileUtils; /** * @author Saswata Paul @@ -39,24 +41,30 @@ public class TestApp { public static void main(String[] args) throws Exception { - String configFilePath = - "C://Users/212807042/Desktop/RACK_tests/temp_results/arp4754_dev/dummy.config"; - String rackDir = "C://Users/212807042/Desktop/RACK_tests/temp_results/arp4754_dev"; +// String configFilePath = +// "C://Users/212807042/Desktop/RACK_tests/temp_results/arp4754_dev/dummy.config"; +// String rackDir = "C://Users/212807042/Desktop/RACK_tests/temp_results/arp4754_dev"; +// +// // Configuration config = ConfigReader.getConfigFromFile(configFile); +// +// // Configuration config = ConfigReader.getConfigFromRACK(rackDir); +// // +// // System.out.println("Got config"); +// // +// // System.out.println(config.getSysReq()); +// // System.out.println(config.getItemReq()); +// // System.out.println(config.getItem()); +// +// String configFile = "dummy.config"; +// +// DataProcessor processor = new DataProcessor(); +// +// processor.getPlanData(rackDir); - // Configuration config = ConfigReader.getConfigFromFile(configFile); - - // Configuration config = ConfigReader.getConfigFromRACK(rackDir); - // - // System.out.println("Got config"); - // - // System.out.println(config.getSysReq()); - // System.out.println(config.getItemReq()); - // System.out.println(config.getItem()); - - String configFile = "dummy.config"; - - DataProcessor processor = new DataProcessor(); - - processor.getPlanData(rackDir); + // Create tempdir to store the csv files + String tempDir = "C://Users/212807042/Desktop/RACK_tests/temp_results/arp4754_dev"; + DataProcessor rdpObj = new DataProcessor(); + rdpObj.getPlanData(tempDir); + } } diff --git a/tools/rack/rack.plugin/src/com/ge/research/rack/arp4754/logic/DataProcessor.java b/tools/rack/rack.plugin/src/com/ge/research/rack/arp4754/logic/DataProcessor.java index fb2fef39..3df1c911 100644 --- a/tools/rack/rack.plugin/src/com/ge/research/rack/arp4754/logic/DataProcessor.java +++ b/tools/rack/rack.plugin/src/com/ge/research/rack/arp4754/logic/DataProcessor.java @@ -666,22 +666,22 @@ private void createEvidenceObjects(String rackDir) { System.out.println("created allItemRequirementwithSystemRequreiment"); // get the header line for allRequirementCompleteCorrectReview csv file - String[] allRequirementCompleteCorrectReviewCols = + String[] allRequirementWithCompleteCorrectReviewCols = CSVUtil.getColumnInfo( RackQueryUtils.createCsvFilePath( DataProcessorUtils.getVarCSVID( - "allRequirementCompleteCorrectReview", config), + "allRequirementWithCompleteCorrectReview", config), rackDir)); int reqIdCol = CustomStringUtils.getCSVColumnIndex( - allRequirementCompleteCorrectReviewCols, + allRequirementWithCompleteCorrectReviewCols, config.getItemReq() + "_id"); // TODO: change to all requirements int completeCorrectReviewIdCol = CustomStringUtils.getCSVColumnIndex( - allRequirementCompleteCorrectReviewCols, + allRequirementWithCompleteCorrectReviewCols, config.getRequirementCompleteCorrectReview() + "_id"); - for (String[] row : allRequirementCompleteCorrectReview) { + for (String[] row : allRequirementWithCompleteCorrectReview) { if ((row[reqIdCol] != null)) { // find index of the object in the appropriate evidence list int indx = @@ -694,31 +694,31 @@ private void createEvidenceObjects(String rackDir) { .getHasReviews() .add( EvidenceUtils.getEvidenceObjById( - Artifacts.getSysReqObjs(), + Artifacts.getItemReqObjs(), row[completeCorrectReviewIdCol])); } } } - System.out.println("created allRequirementCompleteCorrectReview"); + System.out.println("created allRequirementWithCompleteCorrectReview"); // get the header line for allRequirementCompleteCorrectReview csv file - String[] allRequirementTraceableReviewCols = + String[] allRequirementWithTraceableReviewCols = CSVUtil.getColumnInfo( RackQueryUtils.createCsvFilePath( DataProcessorUtils.getVarCSVID( - "allRequirementTraceableReview", config), + "allRequirementWithTraceableReview", config), rackDir)); int reqIdCol2 = CustomStringUtils.getCSVColumnIndex( - allRequirementTraceableReviewCols, + allRequirementWithTraceableReviewCols, config.getItemReq() + "_id"); // TODO: change to all requirements int traceableReviewIdCol = CustomStringUtils.getCSVColumnIndex( - allRequirementTraceableReviewCols, + allRequirementWithTraceableReviewCols, config.getRequirementCompleteCorrectReview() + "_id"); - for (String[] row : allRequirementTraceableReview) { + for (String[] row : allRequirementWithTraceableReview) { if ((row[reqIdCol2] != null)) { // find index of the object in the appropriate evidence list int indx = @@ -731,7 +731,7 @@ private void createEvidenceObjects(String rackDir) { .getHasReviews() .add( EvidenceUtils.getEvidenceObjById( - Artifacts.getSysReqObjs(), row[traceableReviewIdCol])); + Artifacts.getItemReqObjs(), row[traceableReviewIdCol])); } } }+ +