Uses of Class
com.storedobject.iot.Resource
Packages that use Resource
-
Uses of Resource in com.storedobject.iot
Methods in com.storedobject.iot that return ResourceModifier and TypeMethodDescriptionstatic Resource
static Resource
Consumption.getResource()
Retrieves theResource
associated with the current object.FullConsumption.getResource()
ResourceCost.getResource()
Methods in com.storedobject.iot that return types with arguments of type ResourceMethods in com.storedobject.iot with parameters of type ResourceModifier and TypeMethodDescriptionvoid
Block.computeConsumption
(TransactionManager tm, Resource resource) Computes the consumption of a given resource by repeatedly invoking the consumption process until the operation no longer returns 1, which indicates further processing is required.boolean
Determines whether the unit consumes a specified resource.final DailyConsumption
AbstractUnit.getDailyConsumption
(Resource resource) Retrieves the daily consumption record for a specific resource.final DailyConsumption
AbstractUnit.getDailyConsumption
(Resource resource, int year, int day) Retrieves daily consumption data for a specific resource on a given day of a year.final <D extends Date>
DailyConsumptionAbstractUnit.getDailyConsumption
(Resource resource, D date) Retrieves the daily consumption for a specific resource and date.final HourlyConsumption
AbstractUnit.getHourlyConsumption
(Resource resource) Retrieves the hourly consumption for the specified resource.final HourlyConsumption
AbstractUnit.getHourlyConsumption
(Resource resource, int year, int hour) Retrieves the hourly consumption for a specific resource, year, and hour.final <D extends Date>
HourlyConsumptionAbstractUnit.getHourlyConsumption
(Resource resource, D date) Retrieves the hourly consumption for the specified resource and date.final MonthlyConsumption
AbstractUnit.getMonthlyConsumption
(Resource resource) Retrieves the monthly consumption data for the specified resource.final MonthlyConsumption
AbstractUnit.getMonthlyConsumption
(Resource resource, int year, int month) Retrieves the monthly consumption for a specific resource in a given year and month.final <D extends Date>
MonthlyConsumptionAbstractUnit.getMonthlyConsumption
(Resource resource, D date) Retrieves the monthly consumption for a given resource and date.static Money
static Money
final WeeklyConsumption
AbstractUnit.getWeeklyConsumption
(Resource resource) Retrieves the weekly consumption for a given resource.final WeeklyConsumption
AbstractUnit.getWeeklyConsumption
(Resource resource, int year, int week) Retrieves the weekly consumption for a specified resource, year, and week.final <D extends Date>
WeeklyConsumptionAbstractUnit.getWeeklyConsumption
(Resource resource, D date) Retrieves the weekly consumption data for a given resource based on a specific date.final YearlyConsumption
AbstractUnit.getYearlyConsumption
(Resource resource) Retrieves the yearly consumption details for a specific resource.final YearlyConsumption
AbstractUnit.getYearlyConsumption
(Resource resource, int year) Retrieves the yearly consumption for a specified resource and year.final <D extends Date>
YearlyConsumptionAbstractUnit.getYearlyConsumption
(Resource resource, D date) Retrieves the yearly consumption for a specific resource based on the provided date.final List
<DailyConsumption> AbstractUnit.listDailyConsumption
(Resource resource, int year, int dayFrom, int dayTo) Retrieves a list of daily consumption records for a specific resource within a given time range.final List
<DailyConsumption> AbstractUnit.listDailyConsumption
(Resource resource, int yearFrom, int dayFrom, int yearTo, int dayTo) Retrieves a list of daily consumption data for a specified resource over a range of dates.final List
<DailyConsumption> AbstractUnit.listDailyConsumption
(Resource resource, Site site, int periodCount) Retrieves a list of daily consumption records for a given resource within a specific time period.final List
<HourlyConsumption> AbstractUnit.listHourlyConsumption
(Resource resource, int year, int hourFrom, int hourTo) Retrieves a list of hourly consumption data for the specified resource within a given year and time interval.final List
<HourlyConsumption> AbstractUnit.listHourlyConsumption
(Resource resource, int yearFrom, int hourFrom, int yearTo, int hourTo) Retrieves a list of hourly consumption records for a specified resource between given years and hours.final List
<HourlyConsumption> AbstractUnit.listHourlyConsumption
(Resource resource, Site site, int periodCount) Retrieves a list of hourly consumption data for a specified resource at a given site over a defined period.final List
<MonthlyConsumption> AbstractUnit.listMonthlyConsumption
(Resource resource, int year, int monthFrom, int monthTo) Retrieves a list of monthly consumption records for a specified resource and time range.final List
<MonthlyConsumption> AbstractUnit.listMonthlyConsumption
(Resource resource, int yearFrom, int monthFrom, int yearTo, int monthTo) Retrieves a list of monthly consumption data for the specified resource within the given date range.final List
<MonthlyConsumption> AbstractUnit.listMonthlyConsumption
(Resource resource, Site site, int periodCount) Retrieves a list of monthly consumption data for a specified resource and site over a given number of periods (months).final List
<WeeklyConsumption> AbstractUnit.listWeeklyConsumption
(Resource resource, int year, int weekFrom, int weekTo) Retrieves a list of weekly consumption data for a given resource and specified time range.final List
<WeeklyConsumption> AbstractUnit.listWeeklyConsumption
(Resource resource, int yearFrom, int weekFrom, int yearTo, int weekTo) Retrieves the weekly consumption data for a given resource over a specified time period.final List
<WeeklyConsumption> AbstractUnit.listWeeklyConsumption
(Resource resource, Site site, int periodCount) Retrieves a list of weekly consumption data for the specified resource and site over a given number of weeks.final List
<YearlyConsumption> AbstractUnit.listYearlyConsumption
(Resource resource, int yearFrom, int yearTo) Retrieves a list of yearly consumption data for the specified resource over a range of years.final List
<YearlyConsumption> AbstractUnit.listYearlyConsumption
(Resource resource, Site site, int periodCount) Retrieves a list of yearly consumption data for a given resource and site over a specified number of years.void
Block.recomputeConsumption
(TransactionManager tm, Resource resource) Recomputes the consumption data for the given resource by first removing existing consumption entries associated with the resource, and then recalculating the consumption values using the current data and requirements.void
Consumption.setResource
(Resource resource) Sets the resource for this consumption.void
FullConsumption.setResource
(Resource resource) void
ResourceCost.setResource
(Resource resource) -
Uses of Resource in com.storedobject.ui.iot
Methods in com.storedobject.ui.iot that return ResourceModifier and TypeMethodDescriptionConsumptionList.getResource()
Consumption4Unit.resource()
Returns the value of theresource
record component.Methods in com.storedobject.ui.iot with parameters of type ResourceModifier and TypeMethodDescriptionprotected abstract void
protected void
protected void
protected void
static void
Consumption4Unit.process
(Resource resource, Block block, int periodicity, int yearFrom, int yearTo, Consumer<Consumption4Unit<?>> processor) Constructors in com.storedobject.ui.iot with parameters of type ResourceModifierConstructorDescriptionAbstractConsumptionSelector
(String caption, Resource resource, Block block) Consumption4Unit
(Class<C> consumptionClass, Resource resource, AbstractUnit unit, int yearFrom, int yearTo) Creates an instance of aConsumption4Unit
record class.ConsumptionDashboard
(GUI gui, Resource resource) ConsumptionList
(Resource resource, Block block, int periodicity, int yearFrom, int yearTo) ConsumptionList
(Resource resource, Block block, int periodicity, int yearFrom, int yearTo, int limit) ViewConsumption
(Resource resource, Block block)