Magentix2  2.1.1
es.upv.dsic.gti_ia.cAgents.ReceiveState Class Reference
Inheritance diagram for es.upv.dsic.gti_ia.cAgents.ReceiveState:
Collaboration diagram for es.upv.dsic.gti_ia.cAgents.ReceiveState:

List of all members.

Public Member Functions

 ReceiveState (String n)
void setAcceptFilter (MessageFilter filter)
MessageFilter getAcceptFilter ()
void setMethod (ReceiveStateMethod method)
ReceiveStateMethod getMethod ()

Detailed Description

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

Definition at line 12 of file ReceiveState.java.


Constructor & Destructor Documentation

Creates a new receive state

Parameters:
nameof the state

Definition at line 21 of file ReceiveState.java.

                                      {
                super(n);
                type = State.RECEIVE;
        }

Member Function Documentation

Returns the message filter

Returns:
the message filter

Definition at line 38 of file ReceiveState.java.

                                               {
                return acceptFilter;
        }

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

Returns:
This state's method

Definition at line 54 of file ReceiveState.java.

                                              {
                return methodToRun;
        }

Set the message filter

Parameters:
filter

Definition at line 30 of file ReceiveState.java.

                                                          {
                acceptFilter = filter;
        }

Set the method that will be executed when a conversation reaches this state

Parameters:
Themethod of this state

Definition at line 46 of file ReceiveState.java.

                                                         {
                methodToRun = method;
        }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables