3. Java General Functions
This section describes general built-in functions for Java agent.
Agent Environment Object
All functions described under this chapter require the use of the Agent Environment object. The object is parsed to the function block, this allows the user to then call up the Java functions contained within it.
Example - Usage of the Agent Environment object.
This example shows the Agent Environment object env being parsed into the consume function block. The debug function then calls the object.
public void consume(UDRInterface input, AgentEnv env) throws Exception { env.debug("input"); env.route(input); }
This chapter includes the following sections: