Class

cafesat.common

FixedIntDoublePriorityQueue

Related Doc: package common

Permalink

class FixedIntDoublePriorityQueue extends AnyRef

Represents a queue of Int values sorted according to a score value.

Scores are Double value and initialized to 0, while the elements are initialized from 0 to length-1.

Elements are fixed, taking value from 0 to maxSize-1.

When an element is removed, the queue remembers its score, it is still possible to augment its score, and when the element is added back, it takes a position according to its current score.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FixedIntDoublePriorityQueue
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FixedIntDoublePriorityQueue(maxSize: Int)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(id: Int): Int

    Permalink
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def deleteMax: Int

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def incScore(el: Int, offset: Double): Double

    Permalink

    Increments the score of an element in the queue.

    Increments the score of an element in the queue.

    el

    the element whose score should be incremented

    offset

    the increment value, should be positive

    returns

    the new score of the element

    Exceptions thrown

    IllegalArgumentException if offset < 0

  14. def insert(el: Int): Unit

    Permalink
  15. def invariant: Boolean

    Permalink
  16. def isEmpty: Boolean

    Permalink
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def max: Int

    Permalink
  19. val maxSize: Int

    Permalink
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def remove(el: Int): Unit

    Permalink
  24. def rescaleScores(factor: Double): Unit

    Permalink

    Rescales every score by the factor

    Rescales every score by the factor

    This does not impact the ordering of the queue.

    factor

    the factor to multiply each score with

  25. def size: Int

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

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

    Permalink
    Definition Classes
    FixedIntDoublePriorityQueue → AnyRef → Any
  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped