Package org.onosproject.net.resource
Class ContinuousFactory
- java.lang.Object
-
- org.onosproject.net.resource.ContinuousFactory
-
@Beta public final class ContinuousFactory extends Object
Factory class for continuous-type resource related instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContinuousResourceId
id()
Returns the resource ID for continuous-type.ContinuousResource
resource(double volume)
Returns the resource for continuous-type specified by the given value.
-
-
-
Method Detail
-
id
public ContinuousResourceId id()
Returns the resource ID for continuous-type.- Returns:
- continuous-type resource ID
-
resource
public ContinuousResource resource(double volume)
Returns the resource for continuous-type specified by the given value.- Parameters:
volume
- volume of the returned resource- Returns:
- continuous-type resource
-
-