edu.wis.jtlv.lib.games
Class GRGame

java.lang.Object
  extended by edu.wis.jtlv.lib.games.GRGame
All Implemented Interfaces:
Game

public class GRGame
extends java.lang.Object
implements Game

Nir Piterman, Amir Pnueli, and Yaniv Sa’ar. Synthesis of Reactive(1) Designs. In VMCAI, pages 364–380, Charleston, SC, Jenuary 2006.

To execute, create an object with two Modules, one for the system and the other for the environment, and then just extract the strategy through printWinningStrategy().

Version:
"1.2.0"
Author:
yaniv sa'ar.

Constructor Summary
GRGame(ModuleWithWeakFairness env, ModuleWithWeakFairness sys)
           
 
Method Summary
 void calculate_strategy(int kind)
           Extracting an implementation from the set of possible strategies with the given priority to the next step.
 net.sf.javabdd.BDD envWinningStates()
           Getter for the system's winning states.
 net.sf.javabdd.BDD gameInitials()
           
 ModuleWithWeakFairness getEnvPlayer()
           Getter for the environment player.
 ModuleWithWeakFairness getSysPlayer()
           Getter for the system player.
 net.sf.javabdd.BDD[] playersWinningStates()
           
 void printWinningStrategy()
           Extracting an arbitrary implementation from the set of possible strategies.
 net.sf.javabdd.BDD sysWinningStates()
           Getter for the environment's winning states.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GRGame

public GRGame(ModuleWithWeakFairness env,
              ModuleWithWeakFairness sys)
       throws GameException
Throws:
GameException
Method Detail

printWinningStrategy

public void printWinningStrategy()

Extracting an arbitrary implementation from the set of possible strategies.

Specified by:
printWinningStrategy in interface Game

calculate_strategy

public void calculate_strategy(int kind)

Extracting an implementation from the set of possible strategies with the given priority to the next step.

Possible priorities are:
3 - Z Y X.
7 - Z X Y.
11 - Y Z X.
15 - Y X Z.
19 - X Z Y.
23 - X Y Z.

Parameters:
kind - The priority kind.

getEnvPlayer

public ModuleWithWeakFairness getEnvPlayer()

Getter for the environment player.

Returns:
The environment player.

getSysPlayer

public ModuleWithWeakFairness getSysPlayer()

Getter for the system player.

Returns:
The system player.

sysWinningStates

public net.sf.javabdd.BDD sysWinningStates()

Getter for the environment's winning states.

Returns:
The environment's winning states.

envWinningStates

public net.sf.javabdd.BDD envWinningStates()

Getter for the system's winning states.

Returns:
The system's winning states.

gameInitials

public net.sf.javabdd.BDD gameInitials()
Specified by:
gameInitials in interface Game

playersWinningStates

public net.sf.javabdd.BDD[] playersWinningStates()
Specified by:
playersWinningStates in interface Game