Uses of Enum Class
com.tnsai.coordination.groups.swarm.SwarmBehavior
Packages that use SwarmBehavior
Package
Description
Swarm intelligence patterns for decentralized agent coordination.
-
Uses of SwarmBehavior in com.tnsai.coordination.groups.swarm
Methods in com.tnsai.coordination.groups.swarm that return SwarmBehaviorModifier and TypeMethodDescriptionSwarmResult.behavior()Returns the value of thebehaviorrecord component.SwarmState.behavior()Returns the value of thebehaviorrecord component.DefaultSwarm.getBehavior()Swarm.getBehavior()Gets the current swarm behavior.static SwarmBehaviorReturns the enum constant of this class with the specified name.static SwarmBehavior[]SwarmBehavior.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.tnsai.coordination.groups.swarm with parameters of type SwarmBehaviorModifier and TypeMethodDescriptionSwarmBuilder.behavior(SwarmBehavior behavior) Sets the swarm behavior.static SwarmResultSwarmResult.failure(String taskId, String error, SwarmBehavior behavior, Instant startedAt) Creates a failed result.static SwarmStateSwarmState.initial(String swarmId, int memberCount, SwarmBehavior behavior) Creates an initial state for a swarm.voidDefaultSwarm.setBehavior(SwarmBehavior behavior) voidSwarm.setBehavior(SwarmBehavior behavior) Sets the swarm behavior.static SwarmStateSwarmState.snapshot(String swarmId, int memberCount, SwarmBehavior behavior, long tickCount, boolean running, SwarmEnvironment environment, double avgNeighbors, Instant startedAt) Creates an updated state snapshot.static SwarmResultSwarmResult.success(String taskId, String output, SwarmBehavior behavior, String intelligence, List<SwarmResult.AgentContribution> contributions, int iterations, double quality, Instant startedAt) Creates a successful result.Constructors in com.tnsai.coordination.groups.swarm with parameters of type SwarmBehaviorModifierConstructorDescriptionDefaultSwarm(String id, String name, String description, SwarmBehavior behavior, SwarmIntelligence intelligence, NeighborDetection neighborDetection, int neighborRadius, double pheromoneDecay, com.tnsai.agents.groups.GroupPolicy policy) Creates a new DefaultSwarm.SwarmResult(String taskId, boolean success, String output, SwarmBehavior behavior, String intelligence, List<SwarmResult.AgentContribution> contributions, int iterations, double quality, Instant startedAt, Instant completedAt, Map<String, Object> metadata) Creates an instance of aSwarmResultrecord class.SwarmState(String swarmId, int memberCount, SwarmBehavior behavior, long tickCount, boolean running, int pheromoneLocations, int activePheromones, int environmentSize, double neighborConnections, Instant startedAt, Duration elapsed) Creates an instance of aSwarmStaterecord class.