Class/Object

dagr.core.execsystem

Resource

Related Docs: object Resource | package execsystem

Permalink

sealed abstract class Resource[T, R <: Resource[T, R]] extends AnyRef

Sealed base class that Resources must extend. Requires that resources have a single numeric value, and then provides useful arithmetic and relational operators on that value.

T

the type of number the value is expressed in, e.g. Long or Double

R

self-referential type required to make all the operators work nicely

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Resource
  2. AnyRef
  3. 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

Abstract Value Members

  1. abstract def build(value: T): R

    Permalink

    Must be implemented by subclasses to return a new instance with the specified value.

    Must be implemented by subclasses to return a new instance with the specified value.

    Attributes
    protected

Concrete 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: R): R

    Permalink

    Adds the value of another resource to this resource and returns the new value.

  4. def -(that: R): R

    Permalink

    Subtracts one resource from another.

  5. def ->[B](y: B): (Resource[T, R], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Resource[T, R] to ArrowAssoc[Resource[T, R]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. def <(that: R): Boolean

    Permalink

    Implementation of less than.

  7. def <=(that: R): Boolean

    Permalink

    Implementation of less than or equal to.

  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def >(that: R): Boolean

    Permalink

    Implementation of greater than.

  10. def >=(that: R): Boolean

    Permalink

    Implementation of greater than or equal to.

  11. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def ensuring(cond: (Resource[T, R]) ⇒ Boolean, msg: ⇒ Any): Resource[T, R]

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def equals(other: Any): Boolean

    Permalink

    Override equals so that we get proper == and != support.

    Override equals so that we get proper == and != support.

    Definition Classes
    Resource → AnyRef → Any
  19. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. final def toString(): String

    Permalink

    Make the toString always return the value as a string.

    Make the toString always return the value as a string.

    Definition Classes
    Resource → AnyRef → Any
  29. val value: T

    Permalink

    the actual value of the resource (e.g.

    the actual value of the resource (e.g. bytes of memory)

  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def [B](y: B): (Resource[T, R], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Resource[T, R] to ArrowAssoc[Resource[T, R]] 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 Resource[T, R] to any2stringadd[Resource[T, R]] 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:
    (resource: any2stringadd[Resource[T, R]]).+(other)
    Definition Classes
    any2stringadd

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Resource[T, R] to any2stringadd[Resource[T, R]]

Inherited by implicit conversion StringFormat from Resource[T, R] to StringFormat[Resource[T, R]]

Inherited by implicit conversion Ensuring from Resource[T, R] to Ensuring[Resource[T, R]]

Inherited by implicit conversion ArrowAssoc from Resource[T, R] to ArrowAssoc[Resource[T, R]]

Ungrouped