aboutsummaryrefslogtreecommitdiffstats
path: root/jtosca/src/main/java/org/openecomp/sdc/toscaparser/api/elements/ScalarUnitTime.java
blob: 5cde10a9d66886094c3e22ef5acfba31fd10c4ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.openecomp.sdc.toscaparser.api.elements;

public class ScalarUnitTime extends ScalarUnit {

	public ScalarUnitTime(Object value) {
		super(value);
	    SCALAR_UNIT_DEFAULT = "ms";
	    SCALAR_UNIT_DICT.put("d",86400L);
	    SCALAR_UNIT_DICT.put("h",3600L);
	    SCALAR_UNIT_DICT.put("m",60L);
	    SCALAR_UNIT_DICT.put("s",1L);
	    SCALAR_UNIT_DICT.put("ms",0.001);
	    SCALAR_UNIT_DICT.put("us",0.000001);
	    SCALAR_UNIT_DICT.put("ns",0.000000001);
	}

}