public class FrostbiteDomain extends java.lang.Object implements DomainGenerator
If you run the main method of this class, it will launch of a visual explorer that you can play. They keys w,s,a,d,x correspond to the actions jump north, jump south, move west, move east, do nothing.
Modifier and Type | Class and Description |
---|---|
class |
FrostbiteDomain.IglooBuiltPF |
class |
FrostbiteDomain.InWaterPF |
class |
FrostbiteDomain.OnIcePF |
class |
FrostbiteDomain.OnPlatformPF |
class |
FrostbiteDomain.PlatformActivePF |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_EAST
Constant for the name of the east action
|
static java.lang.String |
ACTION_IDLE
Constant for the name of the west action
|
static java.lang.String |
ACTION_NORTH
Constant for the name of the north action
|
static java.lang.String |
ACTION_SOUTH
Constant for the name of the south action
|
static java.lang.String |
ACTION_WEST
Constant for the name of the west action
|
static java.lang.String |
CLASS_AGENT
Constant for the name of the agent OO-MDP class
|
static java.lang.String |
CLASS_IGLOO
Constant for the name of the igloo OO-MDP class
|
static java.lang.String |
CLASS_PLATFORM
Constant for the name of the obstacle OO-MDP class
|
static java.lang.String |
PF_IGLOO_BUILT
Constant for the name of the propositional function "igloo is built"
|
static java.lang.String |
PF_IN_WATER
Constant for the name of the propositional function "agent is in water"
|
static java.lang.String |
PF_ON_ICE
Constant for the name of the propositional function "agent is on ice"
|
static java.lang.String |
PF_ON_PLATFORM
Constant for the name of the propositional function "agent is on platform"
|
static java.lang.String |
PF_PLATFORM_ACTIVE
Constant for the name of the propositional function "platform is active"
|
protected RewardFunction |
rf |
protected int |
scale
Constant to adjust the scale of the game
|
protected TerminalFunction |
tf |
static java.lang.String |
VAR_ACTIVATED
Constant for the name of the activated status of a platform
|
static java.lang.String |
VAR_BUILDING
Constant for the name of the building step of the igloo
|
static java.lang.String |
VAR_HEIGHT
Attribute name for height
|
static java.lang.String |
VAR_SIZE
Constant for the name of the size of a frozen platform
|
static java.lang.String |
VAR_X
Constant for the name of the x position attribute.
|
static java.lang.String |
VAR_Y
Constant for the name of the y position attribute.
|
Constructor and Description |
---|
FrostbiteDomain() |
Modifier and Type | Method and Description |
---|---|
OOSADomain |
generateDomain()
Creates a new frostbite domain.
|
java.util.List<PropositionalFunction> |
generatePFs() |
RewardFunction |
getRf() |
int |
getScale() |
TerminalFunction |
getTf() |
static void |
main(java.lang.String[] args)
Main function to test the domain.
|
void |
setRf(RewardFunction rf) |
void |
setScale(int scale) |
void |
setTf(TerminalFunction tf) |
public static final java.lang.String VAR_X
public static final java.lang.String VAR_Y
public static final java.lang.String VAR_HEIGHT
public static final java.lang.String VAR_SIZE
public static final java.lang.String VAR_BUILDING
public static final java.lang.String VAR_ACTIVATED
public static final java.lang.String CLASS_AGENT
public static final java.lang.String CLASS_IGLOO
public static final java.lang.String CLASS_PLATFORM
public static final java.lang.String ACTION_NORTH
public static final java.lang.String ACTION_SOUTH
public static final java.lang.String ACTION_EAST
public static final java.lang.String ACTION_WEST
public static final java.lang.String ACTION_IDLE
public static final java.lang.String PF_ON_PLATFORM
public static final java.lang.String PF_PLATFORM_ACTIVE
public static final java.lang.String PF_ON_ICE
public static final java.lang.String PF_IGLOO_BUILT
public static final java.lang.String PF_IN_WATER
protected int scale
protected RewardFunction rf
protected TerminalFunction tf
public static void main(java.lang.String[] args)
args
- command line argspublic TerminalFunction getTf()
public void setTf(TerminalFunction tf)
public RewardFunction getRf()
public void setRf(RewardFunction rf)
public int getScale()
public void setScale(int scale)
public java.util.List<PropositionalFunction> generatePFs()
public OOSADomain generateDomain()
generateDomain
in interface DomainGenerator