All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.agentbean.TextSample

java.lang.Object
   |
   +----examples.agentbean.TextSample

public class TextSample
extends Object
implements Serializable
The 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();
 }
 


Constructor Index

 o TextSample()
Initialize the string to manage and register the class to the agent framework.

Method Index

 o getText()
Returns the value of String.
 o setText(String)
Enables the value of String to be set.

Constructors

 o TextSample
 public TextSample()
Initialize the string to manage and register the class to the agent framework.

Methods

 o getText
 public String getText()
Returns the value of String.

 o setText
 public void setText(String value)
Enables the value of String to be set.


All Packages  Class Hierarchy  This Package  Previous  Next  Index