-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathHeatWatts.java
More file actions
48 lines (42 loc) · 801 Bytes
/
Copy pathHeatWatts.java
File metadata and controls
48 lines (42 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package sysmlinjava.valuetypes;
import sysmlinjava.units.SysMLinJavaUnits;
/**
* SysMLinJava value type for heat in watts
*
* @author ModelerOne
*
*/
public class HeatWatts extends RReal
{
/** Serializable ID*/private static final long serialVersionUID = -1566489011777283872L;
/**
* Constructor
*
* @param value double value to be used for initial value
*/
public HeatWatts(double value)
{
super(value);
}
/**
* Constructor - copy
*
* @param copied heat to be used as initial value of copy
*/
public HeatWatts(HeatWatts copied)
{
super(copied);
}
/**
* Constructor - default zero
*/
public HeatWatts()
{
super(0);
}
@Override
protected void createUnits()
{
units = SysMLinJavaUnits.Watts;
}
}