scalation
package scalation
The scalation
package specifies system-wide constants for directory paths.
Sub-packages may wish to define 'BASE-DIR = DATA_DIR + ⁄ + <package>' in their
own 'package.scala' files. For maintainability, directory paths should only
be specified in 'package.scala' files.
- Alphabetic
- By Inheritance
- scalation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
val
BASE: String
Base directory for ScalaTion (pick one, comment out the rest) Under module differentiated, each module (scalation_mathstat, scalation_modeling and scalation_models) will have its own base directory, rather than sharing a common base directory.
-
val
DATA_DIR: String
File system path for input/output data directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
-
val
LOG_DIR: String
File system path for log (log/file output) directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
-
val
MEM_MAPPED_DIR: String
File system path for memory mapped files directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
-
val
SEP: String
The file path separation character: '/' for Linux/Mac, '\' for Windows Use either 'SEP' or '⁄' for portability, i.e., do not use '/' or '\'.
-
val
SRC_DIR: String
File system path for src (source code) directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
- val SRC_SCALA_DIR: String
-
val
STORE_DIR: String
File system path for database storage directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
-
def
removeLast(s: String): String
Remove the last path element from the file/directory pathname.
Remove the last path element from the file/directory pathname.
- s
the string to be so truncated
-
def
setParallelism[A](n: Int)(block: ⇒ A): A
Set the default parallelism level (number of threads to use) for an arbitrary block of code: 'parallel (n) { block }' when running parallel tasks.
Set the default parallelism level (number of threads to use) for an arbitrary block of code: 'parallel (n) { block }' when running parallel tasks. Then restore the old parallelism level.
- n
number of threads FIX : error in scala 2.13 - "not found: value parallel"
- See also
stackoverflow.com/questions/17865823/how-do-i-set-the-default-number-of-threads
-for-scala-2-10-parallel-collections/18574345
- val ⁄: String
-
object
GenIndexHtml extends App
The
GenIndexHtml
object is used to create "index.html" files in source code directories (main and test) to enable Web browsing of source code.The
GenIndexHtml
object is used to create "index.html" files in source code directories (main and test) to enable Web browsing of source code. > runMain scalation.GenIndexHtml -
object
GenReadmeHtml extends App
The
GenReadmeHtml
object is used to create the html tables for the api and src directories for convenient Web browsing.The
GenReadmeHtml
object is used to create the html tables for the api and src directories for convenient Web browsing. > runMain scalation.GenReadmeHtml -
object
Replace
The
Replace
object is used to replace a repeated pattern in the source code.The
Replace
object is used to replace a repeated pattern in the source code. After running, must restore 'pat1' in this file, since it will get updated. -
object
ReplaceAll extends App
The
ReplaceAll
object updates the pattern in all source (.scala) files at or below the 'currentDir'.The
ReplaceAll
object updates the pattern in all source (.scala) files at or below the 'currentDir'. > runMain scalation.ReplaceAll -
object
ReplaceFile extends App
The
ReplaceFile
object updates the pattern in a single source (.scala) file.The
ReplaceFile
object updates the pattern in a single source (.scala) file. > runMain scalation.ReplaceFile -
object
ReplaceOne extends App
The
ReplaceOne
object is used to replace pattern pat1 with pat2.The
ReplaceOne
object is used to replace pattern pat1 with pat2. It reads from standard input and writes to standard output. -
object
UpVersion
The
UpVersion
object is used to update the version number in the source code.The
UpVersion
object is used to update the version number in the source code. After running, must restore 'pat1' in this file, since it will get updated. -
object
UpVersionAll extends App
The 'UpVersionAll' object updates the version number of all source (.scala) files at or below the 'currentDir' (see 'UpVersion').
The 'UpVersionAll' object updates the version number of all source (.scala) files at or below the 'currentDir' (see 'UpVersion'). > runMain scalation.UpVersionAll
-
object
UpVersionFile extends App
The 'UpVersionFile' object updates the version number of a single source (.scala) file.
The 'UpVersionFile' object updates the version number of a single source (.scala) file. > runMain scalation.UpVersionFile
-
object
scalationTest extends App
The
scalationTest
object is used test thescalation
package object.The
scalationTest
object is used test thescalation
package object. > runMain scalation.scalationTest