es.upv.dsic.gti_ia.cAgents
Class ReceiveState

java.lang.Object
  extended by es.upv.dsic.gti_ia.cAgents.State
      extended by es.upv.dsic.gti_ia.cAgents.ReceiveState
All Implemented Interfaces:
Cloneable

public class ReceiveState
extends State

This class represents a receive state during an interaction protocol. When a conversation reaches this state it executes the state's method.

Author:
Ricard Lopez Fogues

Constructor Summary
ReceiveState(String n)
          Creates a new receive state
 
Method Summary
 MessageFilter getAcceptFilter()
          Returns the message filter
 ReceiveStateMethod getMethod()
          Returns the method assigned to this state by the setMethod() function
 void setAcceptFilter(MessageFilter filter)
          Set the message filter
 void setMethod(ReceiveStateMethod method)
          Set the method that will be executed when a conversation reaches this state
 
Methods inherited from class es.upv.dsic.gti_ia.cAgents.State
clone, getName, setName, setType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceiveState

public ReceiveState(String n)
Creates a new receive state

Parameters:
name - of the state
Method Detail

setAcceptFilter

public void setAcceptFilter(MessageFilter filter)
Set the message filter

Parameters:
filter -

getAcceptFilter

public MessageFilter getAcceptFilter()
Returns the message filter

Returns:
the message filter

setMethod

public void setMethod(ReceiveStateMethod method)
Set the method that will be executed when a conversation reaches this state

Parameters:
The - method of this state

getMethod

public ReceiveStateMethod getMethod()
Returns the method assigned to this state by the setMethod() function

Returns:
This state's method


Copyright © 2012 GTI-IA. All Rights Reserved.