All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----examples.agentbean.TextSample
TextSample shows how the BeanBox can be used to generate an agent.
This class is an element of the final agent.
And Every bean can be
integrated by including the two import lines
import com.sun.jaw.reference.agent.cmf.*; import com.sun.jaw.reference.common.*;
and this part of java code in their contructor
try{
((Framework)AgentMain.getFramework()).addObject((Object)this, new ObjectName(((Framework)AgentMain.getFramework()).getDomain()+":examples.agentbean.TextSample"));
} catch (Exception e) {
e.printStackTrace();
}
public TextSample()
public String getText()
public void setText(String value)
All Packages Class Hierarchy This Package Previous Next Index