awips2/nativeLib/rary.cots.hdf5/ext/erdc/BuildingInfo.java
Matt Nash 6bcbc7d8ef Moving 12.1.1 into ss_sync
Former-commit-id: c83e5ff474 [formerly 580e2938d7 [formerly 66be3bec40] [formerly c83e5ff474 [formerly 2a9569942c48542cf708b6c0b9189146fd954c11]]]
Former-commit-id: 580e2938d7 [formerly 66be3bec40]
Former-commit-id: 580e2938d7
Former-commit-id: d8da2252c3
2012-01-19 11:53:12 -06:00

48 lines
No EOL
1.8 KiB
Java

package ext.erdc;
public class BuildingInfo
{
private final String info;
private final int id; /* Unique Feature (object) Identifier */
private final float area; /* spatial areal extent of the footprint */
private final float avght; /* mean height of the building feature */
private final float minht; /* min height of the building feature */
private final float maxht; /* max height of the building feature */
private final float base; /* geometric side (i.e. A = 1/2 b * h) */
private final float orient; /* azimuthl orientation (degrees) */
private final float len; /* longest edge of feature */
private final float wid; /* shortest edge of feature*/
public BuildingInfo(int id, float area, float avght, float minht, float maxht,
float base, float orient, float len, float wid)
{
this.id = id;
this.area = area;
this.avght = avght;
this.minht = minht;
this.maxht = maxht;
this.base = base;
this.orient = orient;
this.len = len;
this.wid = wid;
StringBuffer sb = new StringBuffer(500);
sb.append( " Unique identifier \t= "); sb.append(id);
sb.append(" \n Area (m2) \t= "); sb.append(area);
sb.append(" \n Mean height (m) \t= "); sb.append(avght);
sb.append(" \n Min height (m) \t= "); sb.append(minht);
sb.append(" \n Max height (m) \t= "); sb.append(maxht);
sb.append(" \n Base side (m) \t= "); sb.append(base);
sb.append(" \n Azimuth (degrees) \t= "); sb.append(orient);
sb.append(" \n Longest edge (m) \t= "); sb.append(len);
sb.append(" \n Shortest edge (m) \t= "); sb.append(wid);sb.append(" ");
info = sb.toString();
}
public String toString()
{
return info;
}
}