Class NetworkFuzzer
java.lang.Object
org.cyclops.integrateddynamics.gametest.fuzzing.NetworkFuzzer
Generates random fuzzed networks with diverse parts, aspects, and operators.
Orchestrates three phases: writer selection, operator chain building, and reader selection.
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkFuzzer(net.minecraft.gametest.framework.GameTestHelper helper, Random random, int maxOperatorDepth, List<net.minecraft.core.BlockPos> cables, BlockEntityVariablestore varStore, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos startPos) -
Method Summary
Modifier and TypeMethodDescriptionbooleangenerate()Generate a fuzzed network with three phases: 1.
-
Constructor Details
-
NetworkFuzzer
public NetworkFuzzer(net.minecraft.gametest.framework.GameTestHelper helper, Random random, int maxOperatorDepth, List<net.minecraft.core.BlockPos> cables, BlockEntityVariablestore varStore, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos startPos)
-
-
Method Details
-
generate
Generate a fuzzed network with three phases: 1. Select a random writer part and aspect 2. Build an operator chain that produces the required input type 3. Select random readers to provide inputs to the operator chain- Returns:
- If the generation succeeded (false if it failed due to lack of space or parts, true otherwise)
- Throws:
NetworkFuzzerException- if an error occurs during network generation
-