Uses of Class
org.openhab.core.library.types.DecimalType
Package
Description
-
Uses of DecimalType in org.openhab.core.io.transport.modbus
Modifier 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
Modifier 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- java -
Uses of DecimalType in org.openhab.core.library.types
Modifier 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).Modifier 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)
.Modifier and TypeMethodDescriptionint
DecimalType.compareTo
(DecimalType o) void
PointType.setAltitude
(DecimalType altitude) ModifierConstructorDescriptionHSBType
(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
Modifier 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.