Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## astro.ex10.model
Class PhysicalQuantity

    java.lang.Object
      astro.ex10.model.PhysicalQuantity

    public class PhysicalQuantity

extends java.lang.Object

Field Summary
`private java.lang.String` | `unit`
`private double` | `value`

Constructor Summary
`PhysicalQuantity()`
`PhysicalQuantity(double value, java.lang.String unit)`

Method Summary
`java.lang.String` | `getUnit()`
`double` | `getValue()`
`void` | `setUnit(java.lang.String unit)`
`void` | `setValue(double value)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### value

    private double value

### unit

    private java.lang.String unit

Constructor Detail

### PhysicalQuantity

    public PhysicalQuantity()

### PhysicalQuantity

    public PhysicalQuantity(double value,
                            java.lang.String unit)

Method Detail

### getValue

    public double getValue()

### setValue

    public void setValue(double value)

### getUnit

    public java.lang.String getUnit()

### setUnit

    public void setUnit(java.lang.String unit)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD