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 DecimalTypeModifier and TypeMethodDescriptionvoidNumberItem.send(DecimalType command) Send a DecimalType command to the item.voidNumberItem.send(DecimalType command, @Nullable String source) Send a DecimalType command to the item. -
Uses of DecimalType in org.openhab.core.library.types
Subclasses of DecimalType in org.openhab.core.library.typesModifier and TypeClassDescriptionclassThe HSBType is a complex type with constituents for hue, saturation and brightness and can be used for color items.classThe PercentType extends theDecimalTypeby 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 DecimalTypeStatic access toDecimalType(String).Methods in org.openhab.core.library.types with parameters of type DecimalTypeModifier and TypeMethodDescriptionintDecimalType.compareTo(DecimalType o) voidPointType.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 DecimalTypePersistenceExtensions.evolutionRate(Item item, ZonedDateTime timestamp) Deprecated.static @Nullable DecimalTypePersistenceExtensions.evolutionRate(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Deprecated.static @Nullable DecimalTypePersistenceExtensions.evolutionRate(Item item, ZonedDateTime begin, ZonedDateTime end) Deprecated.static @Nullable DecimalTypePersistenceExtensions.evolutionRate(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Deprecated.static @Nullable DecimalTypePersistenceExtensions.evolutionRateBetween(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the evolution rate of the state of a givenItembetween two points in time.static @Nullable DecimalTypePersistenceExtensions.evolutionRateBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the evolution rate of the state of a givenItembetween two points in time.static @Nullable DecimalTypePersistenceExtensions.evolutionRateSince(Item item, ZonedDateTime timestamp) Gets the evolution rate of the state of a givenItemsince a certain point in time.static @Nullable DecimalTypePersistenceExtensions.evolutionRateSince(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the evolution rate of the state of a givenItemsince a certain point in time.static @Nullable DecimalTypePersistenceExtensions.evolutionRateUntil(Item item, ZonedDateTime timestamp) Gets the evolution rate of the state of a givenItemuntil a certain point in time.static @Nullable DecimalTypePersistenceExtensions.evolutionRateUntil(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the evolution rate of the state of a givenItemuntil a certain point in time.