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

List of all members.

Public Member Functions

 FinalState (String n)
void setMethod (FinalStateMethod method)
FinalStateMethod getMethod ()

Detailed Description

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

Author:
Ricard Lopez Fogues

Definition at line 10 of file FinalState.java.


Constructor & Destructor Documentation

Create a new final state

Parameters:
nameof the state

Definition at line 16 of file FinalState.java.

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

Member Function Documentation

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

Returns:
This state's method

Definition at line 35 of file FinalState.java.

                                            {
                return methodToRun;
        }

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

Parameters:
Themethod of this state

Definition at line 27 of file FinalState.java.

                                                       {
                methodToRun = method;
        }

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