CPD Results

The following document contains the results of PMD's CPD 4.2.5.

Duplications

File Line
openlr/otk/binview/data/FirstValue.java 76
openlr/otk/binview/data/IntermediateValue.java 85
		coords = new CoordinateValue(lon, lat, lrp.getLon(), lrp.getLat());
		frc = new FRCValue(lrp.getAttrib1().getFrc());
		fow = new FOWValue(lrp.getAttrib1().getFow());
		bear = new BearValue(lrp.getAttrib2().getBear());
		lfrcnp = new LFRCNPValue(lrp.getAttrib2().getLfrcnp());
		dnp = new DNPValue(lrp.getAttrib3().getDnp());
		id = idValue;
	}
	
	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public final String getId() {
		return Integer.toString(id);
	}
	
	/**
	 * Gets the raw longitude.
	 * 
	 * @return the longitude
	 */
	public final String getLongitude() {
		return coords.getLongitude();
	}
	
	/**
	 * Gets the raw latitude.
	 * 
	 * @return the latitude
	 */
	public final String getLatitude() {
		return coords.getLatitude();
	}
	
	/**
	 * Gets the longitude in degree.
	 * 
	 * @return the longitude in degree
	 */
	public final String getLongitudeDeg() {
		return coords.getLongitudeDeg();
	}
	
	/**
	 * Gets the latitude in degree.
	 * 
	 * @return the latitude in degree
	 */
	public final String getLatitudeDeg() {
		return coords.getLatitudeDeg();
	}
	
	/**
	 * Gets the longitude in degree.
	 * 
	 * @return the longitude in degree
	 */
	final double getLongitudeDegValue() {
		return coords.getLongitudeDegValue();
	}
	
	/**
	 * Gets the latitude in degree.
	 * 
	 * @return the latitude in degree
	 */
	final double getLatitudeDegValue() {
		return coords.getLatitudeDegValue();
	}
	
	/**
	 * Gets the functional road class.
	 * 
	 * @return the frc
	 */
	public final FRCValue getFrc() {
		return frc;
	}
	
	/**
	 * Gets the form of way.
	 * 
	 * @return the fow
	 */
	public final FOWValue getFow() {
		return fow;
	}
	
	/**
	 * Gets the bearing.
	 * 
	 * @return the bear
	 */
	public final BearValue getBear() {
		return bear;
	}
	
	/**
	 * Gets the lowest functional road class to next point.
	 * 
	 * @return the lfrcnp
	 */
	public final LFRCNPValue getLfrcnp() {
		return lfrcnp;
	}
	
	/**
	 * Gets the distance to next point.
	 * 
	 * @return the dnp
	 */
	public final DNPValue getDnp() {
		return dnp;
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public final String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("id: ").append(id);
		sb.append(" coordinates: ").append(coords);	
		sb.append(" frc: ").append(frc);
		sb.append(" fow: ").append(fow);
		sb.append(" bear: ").append(bear);
		sb.append(" lfrcnp: ").append(lfrcnp);
		sb.append(" dnp: ").append(dnp);	
		return sb.toString();
	}
}
File Line
openlr/otk/binview/data/FirstValue.java 81
openlr/otk/binview/data/LastValue.java 89
		negOff = lrp.getAttrib4().getNOffsetf();
		id = idValue;
	}
	
	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public final String getId() {
		return Integer.toString(id);
	}
	
	/**
	 * Gets the raw longitude.
	 * 
	 * @return the longitude
	 */
	public final String getLongitude() {
		return coords.getLongitude();
	}
	
	/**
	 * Gets the raw latitude.
	 * 
	 * @return the latitude
	 */
	public final String getLatitude() {
		return coords.getLatitude();
	}
	
	/**
	 * Gets the longitude in degree.
	 * 
	 * @return the longitude in degree
	 */
	public final String getLongitudeDeg() {
		return coords.getLongitudeDeg();
	}
	
	/**
	 * Gets the latitude in degree.
	 * 
	 * @return the latitude in degree
	 */
	public final String getLatitudeDeg() {
		return coords.getLatitudeDeg();
	}
	
	/**
	 * Gets the longitude in degree.
	 * 
	 * @return the longitude in degree
	 */
	final double getLongitudeDegValue() {
		return coords.getLongitudeDegValue();
	}
	
	/**
	 * Gets the latitude in degree.
	 * 
	 * @return the latitude in degree
	 */
	final double getLatitudeDegValue() {
		return coords.getLatitudeDegValue();
	}
	
	/**
	 * Gets the functional road class.
	 * 
	 * @return the frc
	 */
	public final FRCValue getFrc() {
		return frc;
	}
	
	/**
	 * Gets the form of way.
	 * 
	 * @return the fow
	 */
	public final FOWValue getFow() {
		return fow;
	}
	
	/**
	 * Gets the bearing.
	 * 
	 * @return the bear
	 */
	public final BearValue getBear() {
		return bear;
	}
	

	/**
	 * Gets the positive offset flag.
	 * 
	 * @return the posOffF
	 */
	public final Integer getPosOff() {