Package space.kscience.dataforge.data
Types
ActiveDataSet
Link copied to clipboard
ActiveDataTree
Link copied to clipboard
class ActiveDataTree<T : Any>(dataType: KType) : DataTree<T> , DataSetBuilder<T> , ActiveDataSet<T>
Content copied to clipboard
A mutable DataTree.Companion.active. It
CachingAction
Link copied to clipboard
CoroutineMonitor
Link copied to clipboard
A monitor of goal state that could be accessed only form inside the goal
DataSetBuilder
Link copied to clipboard
DataTreeItem
Link copied to clipboard
Dependencies
Link copied to clipboard
GoalExecutionRestriction
Link copied to clipboard
class GoalExecutionRestriction(policy: GoalExecutionRestrictionPolicy) : CoroutineContext.Element
Content copied to clipboard
GoalExecutionRestrictionPolicy
Link copied to clipboard
enum GoalExecutionRestrictionPolicy : Enum<GoalExecutionRestrictionPolicy>
Content copied to clipboard
GoalLogger
Link copied to clipboard
LazyGoal
Link copied to clipboard
open class LazyGoal<T>(coroutineContext: CoroutineContext, dependencies: Collection<Goal<*>>, block: suspend () -> T) : Goal<T>
Content copied to clipboard
StaticData
Link copied to clipboard
class StaticData<T : Any>(type: KType, value: T, meta: Meta) : StaticGoal<T> , Data<T>
Content copied to clipboard
StaticGoal
Link copied to clipboard
Functions
ActiveDataTree
Link copied to clipboard
inline suspend fun <T : Any> ActiveDataTree(crossinline block: suspend ActiveDataTree<T>.() -> Unit): ActiveDataTree<T>
Content copied to clipboard
suspend fun <T : Any> ActiveDataTree(type: KType, block: suspend ActiveDataTree<T>.() -> Unit): ActiveDataTree<T>
Content copied to clipboard
Create a dynamic tree. Initial data is placed synchronously. Updates are propagated via updatesScope
branch
Link copied to clipboard
Get a subset of data starting with a given branchName
combine
Link copied to clipboard
emit
Link copied to clipboard
inline suspend fun <T : Any> ActiveDataTree<T>.emit(name: String, noinline block: suspend ActiveDataTree<T>.() -> Unit)
Content copied to clipboard
inline suspend fun <T : Any> ActiveDataTree<T>.emit(name: Name, noinline block: suspend ActiveDataTree<T>.() -> Unit)
Content copied to clipboard
suspend fun <T : Any> DataSetBuilder<T>.emit(name: String, block: suspend DataSetBuilder<T>.() -> Unit)
Content copied to clipboard
suspend fun <T : Any> DataSetBuilder<T>.emit(name: String, set: DataSet<T>)
Content copied to clipboard
suspend fun <T : Any> DataSetBuilder<T>.emit(name: String, data: Data<T>)
Content copied to clipboard
suspend fun <T : Any> DataSetBuilder<T>.emit(name: Name, block: suspend DataSetBuilder<T>.() -> Unit)
Content copied to clipboard
flowChildren
Link copied to clipboard
Flow all data nodes with names starting with branchName
foldToData
Link copied to clipboard
Fold a flow of named data into a single Data
map
Link copied to clipboard
Lazily transform this data to another data. By convention block should not use external data (be pure).
produce
Link copied to clipboard
Produce lazy Data and emit it into the DataSetBuilder
reduceToData
Link copied to clipboard
inline fun <T : Any, R : Any> Collection<Data<T>>.reduceToData(coroutineContext: CoroutineContext = EmptyCoroutineContext, meta: Meta = Meta.EMPTY, crossinline block: suspend (Collection<T>) -> R): Data<R>
Content copied to clipboard
Lazily reduce a collection of Data to a single data.
inline suspend fun <T : Any, R : Any> Flow<NamedData<T>>.reduceToData(coroutineContext: CoroutineContext = EmptyCoroutineContext, meta: Meta = Meta.EMPTY, noinline transformation: suspend (Flow<NamedData<T>>) -> R): Data<R>
Content copied to clipboard
select
Link copied to clipboard
Select a single datum of the appropriate type
selectOne
Link copied to clipboard
static
Link copied to clipboard
withNamePrefix
Link copied to clipboard
Properties
dependencies
Link copied to clipboard
isComplete
Link copied to clipboard
monitor
Link copied to clipboard
monitor
Link copied to clipboard
updatesWithData
Link copied to clipboard