Class/Object

dagr.core.execsystem

ResourceSet

Related Docs: object ResourceSet | package execsystem

Permalink

case class ResourceSet(cores: Cores = Cores.none, memory: Memory = Memory.none) extends Product with Serializable

Holds information about a set of resources

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResourceSet
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResourceSet(cores: Cores = Cores.none, memory: Memory = Memory.none)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(that: ResourceSet): ResourceSet

    Permalink

    Constructs a new resource set by subtracting the provided resource set from this one.

  4. def -(that: Cores): ResourceSet

    Permalink

    Constructs a new resource set by subtracting the provided resource set from this one.

  5. def -(that: ResourceSet): ResourceSet

    Permalink

    Constructs a new resource set by subtracting the provided resource set from this one.

  6. def ->[B](y: B): (ResourceSet, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ResourceSet to ArrowAssoc[ResourceSet] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val cores: Cores

    Permalink
  11. def ensuring(cond: (ResourceSet) ⇒ Boolean, msg: ⇒ Any): ResourceSet

    Permalink
    Implicit information
    This member is added by an implicit conversion from ResourceSet to Ensuring[ResourceSet] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (ResourceSet) ⇒ Boolean): ResourceSet

    Permalink
    Implicit information
    This member is added by an implicit conversion from ResourceSet to Ensuring[ResourceSet] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): ResourceSet

    Permalink
    Implicit information
    This member is added by an implicit conversion from ResourceSet to Ensuring[ResourceSet] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): ResourceSet

    Permalink
    Implicit information
    This member is added by an implicit conversion from ResourceSet to Ensuring[ResourceSet] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ResourceSet to StringFormat[ResourceSet] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def isEmpty: Boolean

    Permalink
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. val memory: Memory

    Permalink
  22. def minusOption(other: ResourceSet): Option[ResourceSet]

    Permalink

    Returns a dagr.core.execsystem.ResourceSet with the remaining resources after subtracting other if doing so would not generate negative resources.

    Returns a dagr.core.execsystem.ResourceSet with the remaining resources after subtracting other if doing so would not generate negative resources. Otherwise returns None.

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def subset(minCores: Cores, maxCores: Cores, memory: Memory): Option[ResourceSet]

    Permalink

    Constructs a subset of this resource set with a fixed amount of memory and a variable number of cores.

    Constructs a subset of this resource set with a fixed amount of memory and a variable number of cores. Will greedily assign the highest number of cores possible.

  27. def subset(cores: Cores, memory: Memory): Option[ResourceSet]

    Permalink

    Constructs a resource set with the provided cores and memory, providing that the cores and memory are a subset of those in the current resource set.

    Constructs a resource set with the provided cores and memory, providing that the cores and memory are a subset of those in the current resource set. If the value do not represent a subset, None is returned.

  28. def subset(that: ResourceSet): Option[ResourceSet]

    Permalink

    Constructs a resource set with the provided cores and memory, providing that the cores and memory are a subset of those in the current resource set.

    Constructs a resource set with the provided cores and memory, providing that the cores and memory are a subset of those in the current resource set. If the value do not represent a subset, None is returned.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    ResourceSet → AnyRef → Any
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def [B](y: B): (ResourceSet, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ResourceSet to ArrowAssoc[ResourceSet] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ResourceSet to any2stringadd[ResourceSet] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (resourceSet: any2stringadd[ResourceSet]).+(other)
    Definition Classes
    any2stringadd

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ResourceSet to any2stringadd[ResourceSet]

Inherited by implicit conversion StringFormat from ResourceSet to StringFormat[ResourceSet]

Inherited by implicit conversion Ensuring from ResourceSet to Ensuring[ResourceSet]

Inherited by implicit conversion ArrowAssoc from ResourceSet to ArrowAssoc[ResourceSet]

Ungrouped