Package com.tnsai.annotations
Class ClassConfig.RunFile
java.lang.Object
com.tnsai.annotations.ClassConfig.RunFile
- Enclosing class:
ClassConfig
A run file as a host passes it to
ClassConfig.useBaseDirectory(RunFile) and
ClassConfig.checkAgents(RunFile): its base directory, its name for
messages, its Agents section and, optionally, the agent types
of the run. Immutable: a wither returns a new run file.- Since:
- 0.18.2
-
Method Summary
Modifier and TypeMethodDescriptionagentTypes(Collection<Class<?>> types) This run file with the agent types of the run, the host's complete registry, so every key resolves against them before the run starts.static ClassConfig.RunFileA run file whose keys match lazily.
-
Method Details
-
of
A run file whose keys match lazily.- Parameters:
base- the directory a relative path resolves against, made absolute when used;nullfor the working directorysource- the run file, for messagesagents- theAgentssection as JSON text;nullor blank for none- Returns:
- the run file
- Since:
- 0.18.2
-
agentTypes
This run file with the agent types of the run, the host's complete registry, so every key resolves against them before the run starts.- Parameters:
types- the agent types; a role class among them takes no section- Returns:
- a new run file
- Since:
- 0.18.2
-