Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Project Rio
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jini.rio.core
Interface ResourceCostProducer

All Known Implementing Classes:
  ByteOrientedDevice, ConnectivityCapability, CPU, DiskSpace, J2SESupport, MeasurableCapability, Memory, Memory, NativeLibrarySupport, OperatingSystem, PlatformCapability, ProcessorArchitecture, RioSupport, RMIActivation, SoftwareSupport, StorageCapability, TCPConnectivity

    public interface ResourceCostProducer

Method Summary
`ResourceCost` | `calculateResourceCost(double units, long duration)` Calculate the cost based on the units provided.

Method Detail

### calculateResourceCost

    ResourceCost calculateResourceCost(double units,
                                       long duration)

  Calculate the cost based on the units provided. The cost will be computed using the ResourceCostModel

  Parameters:
    `units` - The units to be costed
    `duration` - The amount of time in milliseconds the resource has been used for
  Returns:
    A ResourceCost object

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Project Rio
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © Project Rio.