AgentStateSource Class

public final class AgentStateSource
extends ExpandableStringEnum<AgentStateSource>

Indicates the source of an agent's operational state. Empty when the state is not derived from a specific source.

Field Summary

Modifier and Type Field and Description
static final AgentStateSource AGENT_BLUEPRINT

The state is derived from the agent's blueprint.

static final AgentStateSource AGENT_INSTANCE_IDENTITY

The state is derived from the agent's instance identity.

Constructor Summary

Constructor Description
AgentStateSource()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AgentStateSource value.

Method Summary

Modifier and Type Method and Description
static AgentStateSource fromString(String name)

Creates or finds a AgentStateSource from its string representation.

static Collection<AgentStateSource> values()

Gets known AgentStateSource values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AGENT_BLUEPRINT

public static final AgentStateSource AGENT_BLUEPRINT

The state is derived from the agent's blueprint.

AGENT_INSTANCE_IDENTITY

public static final AgentStateSource AGENT_INSTANCE_IDENTITY

The state is derived from the agent's instance identity.

Constructor Details

AgentStateSource

@Deprecated
public AgentStateSource()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AgentStateSource value.

Method Details

fromString

public static AgentStateSource fromString(String name)

Creates or finds a AgentStateSource from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding AgentStateSource.

values

public static Collection<AgentStateSource> values()

Gets known AgentStateSource values.

Returns:

known AgentStateSource values.

Applies to