agent.interaction.samples.outbound
Class PlaceAdapterForOutbound

java.lang.Object
  extended by agent.interaction.samples.outbound.PlaceAdapterForOutbound

public class PlaceAdapterForOutbound
extends java.lang.Object

Handles a place for the Agent Outbound Example.
This class performs actions on the DN of the place, and not on the additional media that this place includes.
The user can click enabled buttons to modify its place status. The place information and the buttons are updated according to the DnEvents that the AgentOutboundExample instance receives.


Field Summary
 com.genesyslab.ail.Dn sampleDn
          Dn object used in this example.
 com.genesyslab.ail.Place samplePlace
          Place object used in this example.
 
Constructor Summary
PlaceAdapterForOutbound(com.genesyslab.ail.Place _samplePlace, com.genesyslab.ail.Dn _sampleDn, AgentInteractionData _agentInteractionData, agent.interaction.samples.outbound.AgentOutboundGui _gui)
          Constructor.
 
Method Summary
 void handleDnEvent(com.genesyslab.ail.event.DnEvent event)
          Receives DnEvents, which report changes to the status or data of a DN.
 void linkWidgetsToGui()
          Links place buttons to Place methods ( voice methods only, no multimedia call).
 void setPlaceWidgetState()
          Enables/Disables login buttons according to isPossible values of each button.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

samplePlace

public com.genesyslab.ail.Place samplePlace
Place object used in this example.


sampleDn

public com.genesyslab.ail.Dn sampleDn
Dn object used in this example.

Constructor Detail

PlaceAdapterForOutbound

public PlaceAdapterForOutbound(com.genesyslab.ail.Place _samplePlace,
                               com.genesyslab.ail.Dn _sampleDn,
                               AgentInteractionData _agentInteractionData,
                               agent.interaction.samples.outbound.AgentOutboundGui _gui)
Constructor. At creation, the instance links widgets (login buttons) to place actions.

Method Detail

linkWidgetsToGui

public void linkWidgetsToGui()
Links place buttons to Place methods ( voice methods only, no multimedia call).


setPlaceWidgetState

public void setPlaceWidgetState()
Enables/Disables login buttons according to isPossible values of each button.


handleDnEvent

public void handleDnEvent(com.genesyslab.ail.event.DnEvent event)
Receives DnEvents, which report changes to the status or data of a DN. Because this method is called in the PlaceListener, it creates a thread to manage the event without delaying the publication of further incoming events.