
aima.core.environment.map.MoveToAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima-core Show documentation
Show all versions of aima-core Show documentation
AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.
package aima.core.environment.map;
import aima.core.agent.impl.DynamicAction;
public class MoveToAction extends DynamicAction {
public static final String ATTRIBUTE_MOVE_TO_LOCATION = "location";
public MoveToAction(String location) {
super("moveTo");
setAttribute(ATTRIBUTE_MOVE_TO_LOCATION, location);
}
public String getToLocation() {
return (String) getAttribute(ATTRIBUTE_MOVE_TO_LOCATION);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy