1 package net.sf.openrocket.unit;
4 * This class provides a 'dumb' version of UnitGroup
5 * It allows any arbitrary unit to be created. It doesn't store any value and can't be converted into anything else.
6 * This is useful for custom expression units.
8 * @author Richard Graham
11 public class FixedUnitGroup extends UnitGroup {
15 public FixedUnitGroup( String unitString ){
16 this.unitString = unitString;
19 public int getUnitCount(){
23 public Unit getDefaultUnit(){
24 return new GeneralUnit(1, unitString);
27 public Unit getSIUnit(){
28 return new GeneralUnit(1, unitString);
31 public boolean contains(Unit u){