Uses of Class
org.openhab.core.library.types.DecimalType
Packages that use DecimalType
Package
Description
-
Uses of DecimalType in org.openhab.core.io.transport.modbus
Methods in org.openhab.core.io.transport.modbus that return types with arguments of type DecimalTypeModifier and TypeMethodDescriptionstatic Optional
<DecimalType> ModbusBitUtilities.extractStateFromRegisters
(ModbusRegisterArray registers, int index, ModbusConstants.ValueType type) Read data from registers and convert the result to DecimalType Interpretation of index goes as follows depending on type BIT: - a single bit is read from the registers - indices between 0...15 (inclusive) represent bits of the first register - indices between 16...31 (inclusive) represent bits of the second register, etc -
Uses of DecimalType in org.openhab.core.library.items
Methods in org.openhab.core.library.items that return DecimalTypeModifier and TypeMethodDescriptionLocationItem.distanceFrom
(@Nullable LocationItem awayItem) Compute the distance with another Point type, http://stackoverflow.com/questions/837872/calculate-distance-in-meters-when-you-know-longitude-and-latitude-in- javaMethods in org.openhab.core.library.items with parameters of type DecimalType -
Uses of DecimalType in org.openhab.core.library.types
Subclasses of DecimalType in org.openhab.core.library.typesModifier and TypeClassDescriptionclass
The HSBType is a complex type with constituents for hue, saturation and brightness and can be used for color items.class
The PercentType extends theDecimalType
by putting constraints for its value on top (0-100).Fields in org.openhab.core.library.types declared as DecimalTypeMethods in org.openhab.core.library.types that return DecimalTypeModifier and TypeMethodDescriptionReturn the bearing in degrees from otherPoint following a great circle path.PointType.distanceFrom
(PointType otherPoint) Return the distance in meters from otherPoint, ignoring altitude.PointType.getAltitude()
PointType.getGravity()
HSBType.getHue()
PointType.getLatitude()
PointType.getLongitude()
static DecimalType
Static access toDecimalType(String)
.Methods in org.openhab.core.library.types with parameters of type DecimalTypeModifier and TypeMethodDescriptionint
DecimalType.compareTo
(DecimalType o) void
PointType.setAltitude
(DecimalType altitude) Constructors in org.openhab.core.library.types with parameters of type DecimalTypeModifierConstructorDescriptionHSBType
(DecimalType h, PercentType s, PercentType b) Constructs a HSBType instance with the given valuesPointType
(DecimalType latitude, DecimalType longitude) PointType
(DecimalType latitude, DecimalType longitude, DecimalType altitude) -
Uses of DecimalType in org.openhab.core.persistence.extensions
Methods in org.openhab.core.persistence.extensions that return DecimalTypeModifier and TypeMethodDescriptionstatic @Nullable DecimalType
PersistenceExtensions.evolutionRate
(Item item, ZonedDateTime timestamp) Deprecated.static @Nullable DecimalType
PersistenceExtensions.evolutionRate
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Deprecated.static @Nullable DecimalType
PersistenceExtensions.evolutionRate
(Item item, ZonedDateTime begin, ZonedDateTime end) Deprecated.static @Nullable DecimalType
PersistenceExtensions.evolutionRate
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Deprecated.static @Nullable DecimalType
PersistenceExtensions.evolutionRateBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the evolution rate of the state of a givenItem
between two points in time.static @Nullable DecimalType
PersistenceExtensions.evolutionRateBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the evolution rate of the state of a givenItem
between two points in time.static @Nullable DecimalType
PersistenceExtensions.evolutionRateSince
(Item item, ZonedDateTime timestamp) Gets the evolution rate of the state of a givenItem
since a certain point in time.static @Nullable DecimalType
PersistenceExtensions.evolutionRateSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the evolution rate of the state of a givenItem
since a certain point in time.static @Nullable DecimalType
PersistenceExtensions.evolutionRateUntil
(Item item, ZonedDateTime timestamp) Gets the evolution rate of the state of a givenItem
until a certain point in time.static @Nullable DecimalType
PersistenceExtensions.evolutionRateUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the evolution rate of the state of a givenItem
until a certain point in time.