es.upv.dsic.gti_ia.cAgents
Class WaitState
java.lang.Object
es.upv.dsic.gti_ia.cAgents.State
es.upv.dsic.gti_ia.cAgents.WaitState
- All Implemented Interfaces:
- Cloneable
public class WaitState
- extends State
This class represents a wait state during an interaction protocol.
It halts until a message is assigned to this conversation
or the timeout is reached, whatever happens earlier.
- Author:
- Ricard Lopez Fogues
|
Constructor Summary |
WaitState(String n,
long period)
Creates a new wait state |
|
Method Summary |
long |
getPeriod()
Returns the timeout period |
int |
getWaitType()
Returns the type of this wait state |
void |
setWaitType(int type)
Sets type of the wait state |
ONESHOT
public static int ONESHOT
PERIODIC
public static int PERIODIC
ABSOLUT
public static int ABSOLUT
waitType
public int waitType
WaitState
public WaitState(String n,
long period)
- Creates a new wait state
- Parameters:
name - of the stateperiod - timeout
setWaitType
public void setWaitType(int type)
- Sets type of the wait state
- Parameters:
type - of this wait state
getPeriod
public long getPeriod()
- Returns the timeout period
- Returns:
- the timeout period
getWaitType
public int getWaitType()
- Returns the type of this wait state
- Returns:
- type of this wait state
Copyright © 2012 GTI-IA. All Rights Reserved.