public ThreeGPP_2G_Cell_ID(PLMN_ID plmnID, LAC lac, CI ci) { Serialization srlz = new Serialization(); this.plmnID = plmnID; this.lac = lac; this.ci = ci; threegpp_2g_cell_id = new byte[srlz.sequence(plmnID.get_PLMN_ID(), lac.get_LAC(), ci.get_CI()).length]; threegpp_2g_cell_id = srlz.sequence(plmnID.get_PLMN_ID(), lac.get_LAC(), ci.get_CI()); }
/** * Cleanups given configuration <code>_type</code>. This means that all existing administration * object which starts with {@link #PREFIX} are deleted. Only if {@link CI#wildcardSearch} is * <i>true</i>, a search via wild card is done; otherwise a list of all administration object is * used. * * @param _type type of configuration item * @throws MatrixException if cleanup for given configuration item <code>_type</code> failed */ protected void cleanup(final CI _type) throws MatrixException { // administration objects if (_type.getMxType() != null) { final Set<String> elements; if (_type == AbstractTest.CI.UI_TABLE) { elements = this.mqlAsSet("escape list table system"); for (final String element : elements) { if (element.startsWith(AbstractTest.PREFIX)) { this.mql( "escape delete " + _type.mxType + " \"" + AbstractTest.convertMql(element) + "\" system"); } } } else { if (_type.wildcardSearch) { elements = this.mqlAsSet("escape list " + _type.mxType + " \"" + AbstractTest.PREFIX + "*\""); } else { elements = this.mqlAsSet("escape list " + _type.mxType); } if (_type == AbstractTest.CI.DM_INTERFACE) { for (final String element : elements) { this.mql( "escape mod " + _type.mxType + " \"" + AbstractTest.convertMql(element) + "\" remove derived"); } } for (final String element : elements) { if (element.startsWith(AbstractTest.PREFIX)) { this.mql( "escape delete " + _type.mxType + " \"" + AbstractTest.convertMql(element) + "\""); } } } } // business objects if (_type.getBusType() != null) { final Set<String> busIds = this.mqlAsSet( "escape temp query bus \"" + AbstractTest.convertMql(_type.getBusType()) + "\" \"" + AbstractTest.PREFIX + "*\" * select id dump '\t' recordseparator '\n'"); for (final String busId : busIds) { this.mql("delete bus " + busId.split("\t")[3]); } } }
@Override public List<CodeRangeMetrics> getCodeRangeMetrics() { Map<String, MetricValue<?>> row = new HashMap<>(); row.put(KSLOC.getName(), new MetricValue<Double>(getKsloc(), KSLOC)); row.put(PERSON_MONTH.getName(), new MetricValue<Double>(getPersonMonth(), PERSON_MONTH)); row.put(PERSON_YEARS.getName(), new MetricValue<Double>(getPersonYears(), PERSON_YEARS)); row.put( SCHEDULED_MONTH.getName(), new MetricValue<Double>(getScheduledMonth(), SCHEDULED_MONTH)); row.put( SCHEDULED_YEARS.getName(), new MetricValue<Double>(getScheduledYears(), SCHEDULED_YEARS)); row.put(TEAM_SIZE.getName(), new MetricValue<Double>(getTeamSize(), TEAM_SIZE)); row.put(COSTS.getName(), new MetricValue<Double>(getEstimatedCosts(), COSTS)); row.put(SALARY.getName(), new MetricValue<Money>(getMoney(), SALARY)); row.put(AI.getName(), new MetricValue<Double>(getProject().getAi(), AI)); row.put(BI.getName(), new MetricValue<Double>(getProject().getBi(), BI)); row.put(CI.getName(), new MetricValue<Double>(getProject().getCi(), CI)); row.put(DI.getName(), new MetricValue<Double>(getProject().getDi(), DI)); List<CodeRangeMetrics> metrics = new ArrayList<>(); metrics.add( new CodeRangeMetrics( sourceCodeLocation, CodeRangeType.FILE, sourceCodeLocation.getName(), IntermediateCoCoMoEvaluatorParameter.ALL, row)); return metrics; }