summaryrefslogtreecommitdiffstats
path: root/jtosca/src/main/java/org/openecomp/sdc/toscaparser/elements/ScalarUnitTime.java
blob: b8c0ad007d620e5ec2fb4d826f33aebe3fb7ac6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.openecomp.sdc.toscaparser.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);
	}

}