
aima.core.agent.impl.DynamicAction 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.agent.impl;
import aima.core.agent.Action;
/**
* @author Ciaran O'Reilly
* @author Mike Stampone
*/
public class DynamicAction extends ObjectWithDynamicAttributes implements
Action {
public static final String ATTRIBUTE_NAME = "name";
//
public DynamicAction(String name) {
this.setAttribute(ATTRIBUTE_NAME, name);
}
/**
* Returns the value of the name attribute.
*
* @return the value of the name attribute.
*/
public String getName() {
return (String) getAttribute(ATTRIBUTE_NAME);
}
//
// START-Action
public boolean isNoOp() {
return false;
}
// END-Action
//
@Override
public String describeType() {
return Action.class.getSimpleName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy