本文整理了Java中org.ccsds.moims.mo.mal.structures.Union.getIntegerValue()
方法的一些代码示例,展示了Union.getIntegerValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Union.getIntegerValue()
方法的具体详情如下:
包路径:org.ccsds.moims.mo.mal.structures.Union
类名称:Union
方法名:getIntegerValue
暂无
代码示例来源:origin: int.esa.nmf.core/helper-tools
return (int) ((Union) obj).getIntegerValue();
代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-mc
private Attribute applyPolyConversion(final PolyConversionDetails conversionDetails, final Attribute value) {
//requirement: 3.8.3.e => no entry in the points-list returns null
final PairList points = conversionDetails.getPoints();
if (points.size() == 0) {
return null;
}
double convertedValue = 0;
for (Pair point : points) {
double midStep = Math.pow(HelperAttributes.attribute2double(value), ((Union) point.getFirst()).getIntegerValue());
convertedValue += HelperAttributes.attribute2double(point.getSecond()) * midStep;
}
return new Union(convertedValue);
}
代码示例来源:origin: int.esa.nmf.core/helper-tools
return new Double(((Union) in).getIntegerValue());
代码示例来源:origin: int.esa.nmf.core/helper-tools
if (((Union) in).getIntegerValue() == null) {
return "";
return (((Union) in).getIntegerValue()).toString();
代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-mc
public static double getDouble(Attribute attr) {
int type = attr.getTypeShortForm();
switch (type) {
case Attribute._DOUBLE_TYPE_SHORT_FORM:
//Already double.
return ((Union) attr).getDoubleValue();
case Attribute._SHORT_TYPE_SHORT_FORM:
// Short.
return ((Union) attr).getShortValue();
case Attribute._USHORT_TYPE_SHORT_FORM:
// UShort
return ((UShort) attr).getValue();
case Attribute._INTEGER_TYPE_SHORT_FORM:
// Integer
return ((Union) attr).getIntegerValue();
case Attribute._UINTEGER_TYPE_SHORT_FORM:
// UInteger
return ((UInteger) attr).getValue();
case Attribute._LONG_TYPE_SHORT_FORM:
// Long
return ((Union) attr).getLongValue();
}
return 0;
}
内容来源于网络,如有侵权,请联系作者删除!