![JAR search and dependency download from the Maven repository](/logo.png)
org.ggp.base.util.statemachine.exceptions.MoveDefinitionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alloy-ggp-base Show documentation
Show all versions of alloy-ggp-base Show documentation
A modified version of the GGP-Base library for Alloy.
The newest version!
package org.ggp.base.util.statemachine.exceptions;
import org.ggp.base.util.statemachine.MachineState;
import org.ggp.base.util.statemachine.Role;
@SuppressWarnings("serial")
public final class MoveDefinitionException extends Exception
{
private final Role role;
private final MachineState state;
public MoveDefinitionException(MachineState state, Role role)
{
this.state = state;
this.role = role;
}
public Role getRole()
{
return role;
}
public MachineState getState()
{
return state;
}
@Override
public String toString()
{
return "There are no legal moves defined for " + role + " in " + state;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy