es.upv.dsic.gti_ia.cAgents
Class WaitState

java.lang.Object
  extended by es.upv.dsic.gti_ia.cAgents.State
      extended by 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

Field Summary
static int ABSOLUT
           
static int ONESHOT
           
static int PERIODIC
           
 int waitType
           
 
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
 
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
 

Field Detail

ONESHOT

public static int ONESHOT

PERIODIC

public static int PERIODIC

ABSOLUT

public static int ABSOLUT

waitType

public int waitType
Constructor Detail

WaitState

public WaitState(String n,
                 long period)
Creates a new wait state

Parameters:
name - of the state
period - timeout
Method Detail

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.