/*******************************************************************************
* Copyright 2012 UPM - Universidad Politécnica de Madrid
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package org.universAAL.ontology.unit.system;
import org.universAAL.ontology.unit.DividedUnit;
import org.universAAL.ontology.unit.MeasurableDimension;
import org.universAAL.ontology.unit.MultipliedUnit;
import org.universAAL.ontology.unit.Unit;
public class Util {
public static final Unit IND_UNIT_UNITY = new Unit("unity", "Unity", "1",
MeasurableDimension.Adiemnsional);
public static final Unit IND_UNIT_PERCENT = new Unit("percent", "Percent", "%",
MeasurableDimension.Adiemnsional);
public static final Unit IND_UNIT_HERTZ = new DividedUnit("hertz", IND_UNIT_UNITY,
InternationalSystem.IND_UNIT_SI_SECOND);
public static final Unit IND_UNIT_VOLT = new DividedUnit(
"volt",
"V",
new MultipliedUnit("kg*m2",
InternationalSystem.IND_UNIT_SI_GRAM,
InternationalSystem.IND_PREFIX_SI_KILO,
new MultipliedUnit("m2",
InternationalSystem.IND_UNIT_SI_METER,
InternationalSystem.IND_UNIT_SI_METER)),
new MultipliedUnit(
"A*S3",
InternationalSystem.IND_UNIT_SI_AMPERE,
new MultipliedUnit("S3",
InternationalSystem.IND_UNIT_SI_SECOND,
new MultipliedUnit("s2",
InternationalSystem.IND_UNIT_SI_SECOND,
InternationalSystem.IND_UNIT_SI_SECOND))));
}