Neokernel API

Agent Class

This abstract implementation of the AgentInterface provides the base class for all components in the Neokernel. There is built-in support for routing agent output to Neokernel output and error streams, and masking output using hide_println, hide_debug, and hide_warningProps. This implementation of AgentInterface recognizes the following Props entries:

name
The agent's display name; this will be displayed in agent output. Defaults to be the same as the agent's classname.
id
The agent's id (a numeric value.) The kernel loads agents in numeric order according to their agent id. The default is for agents to use an id assigned by the kernel.
startup
A boolean value indicating whether this agent should be started. Default value is true
classname
The name of the object that contains this agent's code.
hide_println
If set to true, all println output for this agent is hidden. Default value is false
hide_debug
If set to true, all debug output for this agent is hidden. Default value is false
hide_warning
If set to true, all warning output for this agent is hidden. Default value is false

For a list of all members of this type, see Agent Members .

System.Object
   Props
      Agent
         Derived types

public abstract class Agent : Props, AgentInterface, HasStateMachineModel

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: com.neokernel.nk

Assembly: Neokernel (in Neokernel.exe)

See Also

Agent Members | com.neokernel.nk Namespace