scalation

util

package util

The util package contains classes, traits and objects for basic utility functions.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Error extends AnyRef

    The Error trait is used to report errors showing the class and method within which the error or flaw occurred.

  2. trait Identifiable extends Error

    The Identifiable trait provides unique identification for simulation components, entities and events.

    The Identifiable trait provides unique identification for simulation components, entities and events. Includes a mandatory id and an optional name.

  3. trait Locatable extends Error

    The Locatable trait provides location information/coordinates for objects (e.g., Components).

  4. trait PQItem extends Identifiable

    The PQItem trait should be mixed in for items going on a PQueue.

  5. class PQueue[T <: PQItem] extends ResizableArray[T] with Serializable

    The PQueue class provides a simple linear implementation for priority queues.

    The PQueue class provides a simple linear implementation for priority queues. Once bug in scala 2.8 if fixed, may wish to switch to logarithmic implementation in scala.collection.mutable.PriorityQueue.

  6. class SortedLinkedHashMap[A, B] extends LinkedHashMap[A, B] with Serializable

    The SortedLinkedHashMap class extends the scala LinkedHashMap class.

    The SortedLinkedHashMap class extends the scala LinkedHashMap class. It maintains the keys (type A) in order, so when you iterate the entry set, the entries are in key order. This is useful for merge algorithms, such as those used for sparse matrices.

  7. class Sorting[T] extends AnyRef

    The Sorting class provides direct and indirect methods to:

    The Sorting class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is generic.

    See also

    SortingD for a version of this class specialized for Doubles.

  8. class SortingD extends AnyRef

    The SortingD class provides direct and indirect methods to:

    The SortingD class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Doubles.

    See also

    Sorting for a generic version of this class.

Value Members

  1. object CommentExtractor extends App

    The CommentExtractor object is used to extract comments from source code (for example to send it to a spell checker).

    The CommentExtractor object is used to extract comments from source code (for example to send it to a spell checker). It reads from standard input and writes to standard output.

    See also

    http://ostermiller.org/findcomment.html

  2. object FloatLiteral extends App

    The FloatLiteral object is used to add '0' to floating point literals, which end in a dot ('.'), e.g., "12." -> "12.0".

    The FloatLiteral object is used to add '0' to floating point literals, which end in a dot ('.'), e.g., "12." -> "12.0".

    See also

    http://stackoverflow.com/questions/9655080/scala-operator-oddity "In scala 2.9 and before, 2. is interpreted as 2.0 so the ambiguous dot denotes a float literal. You’d explicitly call the method by using the syntax (2).+(2). The ambiguous floating point syntax will however be deprecated in 2.10."

  3. object Identifiable

    The Identifiable object is used to generate unique identifiers.

  4. object Monitor

    The Monitor object is used to trace the actions/events in the models.

  5. object PQueueTest extends App

    The PQueueTest object is used to test the PQueue class.

  6. object Replace extends App

    The Replace object is used to replace pattern pat1 with pat2.

    The Replace object is used to replace pattern pat1 with pat2. It reads from standard input and writes to standard output.

  7. object SortedLinkedHashMapTest extends App

    The SortedLinkedHashMapTest object is used to test the SortedLinkedHashMap class.

  8. object Sorting

    The Sorting companion object provides shortcuts for calling methods from the Sorting class.

  9. object SortingD

    The SortingD companion object provides shortcuts for calling methods from the SortingD class.

  10. object SortingDTest extends App

    The SortingDTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingD class.

  11. object SortingDTest2 extends App

    The SortingDTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingD class.

  12. object SortingDTest3 extends App

    The SortingDTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingD class.

  13. object SortingDTest4 extends App

    The SortingDTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingD class.

  14. object SortingDTest5 extends App

    The SortingDTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingD class.

    The SortingDTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingD class. Thet sort in decreasing order.

  15. object SortingTest extends App

    The SortingTest object is used to test the correctness and performance of the methods in the Sorting class that find 'k'-medians.

  16. object SortingTest2 extends App

    The SortingTest2 object is used to test the correctness and performance of the sorting methods in the Sorting class.

  17. object Swap

    The Swap class provides a method to swap elements in an Array or ArrayBuffer.

    The Swap class provides a method to swap elements in an Array or ArrayBuffer. Note, ArrayBuffer is resizable (similar to Java's ArrayList).

  18. object SwapTest extends App

    This object is used to test the Swap object.

  19. object TestBreak extends App

    The TestBreak object provides an example of how to use "breaks" in Scala.

    The TestBreak object provides an example of how to use "breaks" in Scala.

    See also

    http://www.scala-lang.org/archives/downloads/distrib/files/nightly/docs/library/scala/util/control/Breaks.html

    http://daily-scala.blogspot.com/2010/04/breaks.html

  20. object Timer

    The Timer object allow any component that imports it in to easily time blocks of code.

Inherited from AnyRef

Inherited from Any

Ungrouped