agent.interaction.samples.outbound
Class AgentOutboundExample

java.lang.Object
  extended by agent.interaction.samples.outbound.AgentOutboundExample
All Implemented Interfaces:
com.genesyslab.ail.event.CampaignListener, com.genesyslab.ail.event.ConfigObjectListener, com.genesyslab.ail.event.DnListener, com.genesyslab.ail.event.InteractionListener, com.genesyslab.ail.event.PlaceListener, java.util.EventListener

public class AgentOutboundExample
extends java.lang.Object
implements com.genesyslab.ail.event.PlaceListener, com.genesyslab.ail.event.CampaignListener

Main class of the Agent Outbound code example.
This class implements the PlaceListener and CampaignListener interfaces to receive the status, interaction, and outbound events that occurs on a DN. It does not process events but use adapters in this purpose. At startup, it creates the following instances:


Constructor Summary
AgentOutboundExample(java.lang.String windowTitle)
          Creates an instance of AgentOutboundExample.
 
Method Summary
 void contactChanged(com.genesyslab.ail.event.InteractionEvent arg0)
          Not implemented.
 void deleted()
          Not implemented.
 void dnAdded(java.lang.String arg0)
          Not implemented.
 void dnRemoved(java.lang.String arg0)
          Not implemented.
 void handleCampaignEvent(com.genesyslab.ail.event.CampaignEvent event)
          Handles CampaignEvent events in the CampaignAdapter instance.
 void handleDnEvent(com.genesyslab.ail.event.DnEvent event)
          Handles DnEvent events in the PlaceAdapterForOutbound instance.
 void handleInteractionEvent(com.genesyslab.ail.event.InteractionEvent event)
          Not implemented.
 void handlePlaceEvent(com.genesyslab.ail.event.PlaceEvent arg0)
          Manages PlaceEventOutboundChainInfo events.
 void idModified(java.lang.String arg0)
          Not implemented.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentOutboundExample

public AgentOutboundExample(java.lang.String windowTitle)
Creates an instance of AgentOutboundExample. The Connector class connects to the Agent Interaction Layer using the AilLoader and AilFactory classes.
The AgentInteractionData class supplies data from the Configuration Layer for things like host, port, place, DN and agent attributes.
After connecting, this method sets up an agent, place and DN for use by the examples. Then it creates the GUI, creates the adapters that links the GUI components (widgets) to API functionality, and starts the application.
Finally, it registers listeners to handle events.

Parameters:
windowTitle - The title of the GUI window for this example.
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args -

dnAdded

public void dnAdded(java.lang.String arg0)
Not implemented.

Specified by:
dnAdded in interface com.genesyslab.ail.event.PlaceListener

dnRemoved

public void dnRemoved(java.lang.String arg0)
Not implemented.

Specified by:
dnRemoved in interface com.genesyslab.ail.event.PlaceListener

handlePlaceEvent

public void handlePlaceEvent(com.genesyslab.ail.event.PlaceEvent arg0)
Manages PlaceEventOutboundChainInfo events.

Specified by:
handlePlaceEvent in interface com.genesyslab.ail.event.PlaceListener

idModified

public void idModified(java.lang.String arg0)
Not implemented.

Specified by:
idModified in interface com.genesyslab.ail.event.PlaceListener

deleted

public void deleted()
Not implemented.

Specified by:
deleted in interface com.genesyslab.ail.event.ConfigObjectListener

handleDnEvent

public void handleDnEvent(com.genesyslab.ail.event.DnEvent event)
Handles DnEvent events in the PlaceAdapterForOutbound instance.

Specified by:
handleDnEvent in interface com.genesyslab.ail.event.DnListener

contactChanged

public void contactChanged(com.genesyslab.ail.event.InteractionEvent arg0)
Not implemented.

Specified by:
contactChanged in interface com.genesyslab.ail.event.InteractionListener

handleInteractionEvent

public void handleInteractionEvent(com.genesyslab.ail.event.InteractionEvent event)
Not implemented.

Specified by:
handleInteractionEvent in interface com.genesyslab.ail.event.InteractionListener

handleCampaignEvent

public void handleCampaignEvent(com.genesyslab.ail.event.CampaignEvent event)
Handles CampaignEvent events in the CampaignAdapter instance.

Specified by:
handleCampaignEvent in interface com.genesyslab.ail.event.CampaignListener