The Error
trait is used to report errors showing the class and method within
which the error or flaw occurred.
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.
The Locatable
trait provides location information/coordinates for objects
(e.g., Component
s).
The PQItem
trait should be mixed in for items going on a PQueue.
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.
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.
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.
SortingD
for a version of this class specialized for Doubles.
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.
Sorting
for a generic version of this class.
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.
http://ostermiller.org/findcomment.html
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".
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."
The Identifiable
object is used to generate unique identifiers.
The Monitor
object is used to trace the actions/events in the models.
The PQueueTest
object is used to test the PQueue
class.
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.
The SortedLinkedHashMapTest
object is used to test the SortedLinkedHashMap
class.
The Sorting
companion object provides shortcuts for calling methods from
the Sorting
class.
The SortingD
companion object provides shortcuts for calling methods from
the SortingD
class.
The SortingDTest
object is used to test the correctness and performance
of the 'median' and 'imedian' methods in the SortingD
class.
The SortingDTest2
object is used to test the correctness and performance
of the 'qsort' and 'iqsort' sorting methods in the SortingD
class.
The SortingDTest3
object is used to test the correctness and performance
of the 'selsort' and 'iselsort' sorting methods in the SortingD
class.
The SortingDTest4
object is used to test the correctness and performance
of the 'qsort2' and 'iqsort2' 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.
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.
The SortingTest
object is used to test the correctness and performance
of the methods in the Sorting
class that find 'k'-medians.
The SortingTest2
object is used to test the correctness and performance
of the sorting methods in the Sorting
class.
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).
This object is used to test the Swap object.
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.
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
The Timer
object allow any component that imports it in to easily time
blocks of code.
The util package contains classes, traits and objects for basic utility functions.