Usage and constraints

Set minimum compute, working memory and motherboard generation for a capability. Memory here is the network’s logical planning budget, not JVM heap. Meeting these thresholds does not replace the energy and materials required by the recipe.

ProductionRequirements

ProductionRequirements
package dev.nebulastorage.api.production

/** Network admission requirements from powered servers. Memory is installed logical bytes, compute is dispatch capacity, generation is the best active motherboard. */
data class ProductionRequirements(val minimumCompute: Long = 0, val minimumMemory: Long = 0, val minimumGeneration: Int = 0) {
    init { require(minimumCompute >= 0 && minimumMemory >= 0 && minimumGeneration in 0..7) }
    fun satisfied(compute: Long, memory: Long, generation: Int) = compute >= minimumCompute && memory >= minimumMemory && generation >= minimumGeneration
}
Source

src/main/kotlin/dev/nebulastorage/api/production/ProductionRequirements.kt; editorial/en.json

43b4d12d69e6033c24fa8c39dac383ef2429b446