jadex.service
Class GoalReachedService

java.lang.Object
  extended by jadex.commons.service.BasicService
      extended by jadex.service.GoalReachedService
All Implemented Interfaces:
jadex.commons.IRemotable, jadex.commons.service.IInternalService, jadex.commons.service.IService, IGoalReachedService

public class GoalReachedService
extends jadex.commons.service.BasicService
implements IGoalReachedService

This service sends new goals to agents on the network. No sending is required of participating agents.


Field Summary
protected  jadex.micro.IMicroExternalAccess agent
          The agent.
protected  java.util.List listeners
          The listeners.
 
Fields inherited from class jadex.commons.service.BasicService
idcnt, properties, shutdowned, sid, started, startfutures
 
Fields inherited from interface jadex.commons.service.IService
EMPTY_SERVICES
 
Constructor Summary
GoalReachedService(jadex.bridge.IExternalAccess agent)
          Create a new helpline service.
 
Method Summary
 void addChangeListener(jadex.commons.IChangeListener listener)
          Add a change listener.
 void receive(java.lang.String name, java.lang.String robotName, java.lang.Object obj)
          Hear something.
 void removeChangeListener(jadex.commons.IChangeListener listener)
          Remove a change listener.
 void send(java.lang.String name, java.lang.String robotName, java.lang.Object obj)
          Tell something.
 java.lang.String toString()
          Get the string representation.
 
Methods inherited from class jadex.commons.service.BasicService
createServiceIdentifier, generateServiceName, getPropertyMap, getServiceIdentifier, isValid, setPropertyMap, shutdownService, signalStarted, startService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jadex.commons.service.IService
getPropertyMap, getServiceIdentifier, signalStarted
 

Field Detail

agent

protected jadex.micro.IMicroExternalAccess agent
The agent.


listeners

protected java.util.List listeners
The listeners.

Constructor Detail

GoalReachedService

public GoalReachedService(jadex.bridge.IExternalAccess agent)
Create a new helpline service.

Method Detail

send

public void send(java.lang.String name,
                 java.lang.String robotName,
                 java.lang.Object obj)
Tell something.

Parameters:
name - The name.
robotName - The text.
obj - The goal reached.

receive

public void receive(java.lang.String name,
                    java.lang.String robotName,
                    java.lang.Object obj)
Hear something.

Specified by:
receive in interface IGoalReachedService
Parameters:
name - The name.
obj - The text.
robotName - The text message.

addChangeListener

public void addChangeListener(jadex.commons.IChangeListener listener)
Add a change listener.


removeChangeListener

public void removeChangeListener(jadex.commons.IChangeListener listener)
Remove a change listener.


toString

public java.lang.String toString()
Get the string representation.

Overrides:
toString in class java.lang.Object
Returns:
The string representation.