jalse.entities.methods.SetAttributeMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JALSE Show documentation
Show all versions of JALSE Show documentation
Java Artificial Life Simulation Engine
package jalse.entities.methods;
import static jalse.attributes.Attributes.requireNotEmpty;
import jalse.attributes.AttributeContainer;
import jalse.attributes.AttributeType;
import jalse.entities.Entity;
import jalse.entities.annotations.SetAttribute;
import jalse.entities.functions.SetAttributeFunction;
import java.util.Objects;
/**
* This is used for mapping calls to:
*
* - {@link AttributeContainer#setOptAttribute(String, AttributeType, Object)}
* - {@link AttributeContainer#setAttribute(String, AttributeType, Object)}
* - {@link AttributeContainer#removeOptAttribute(String, AttributeType)}
* - {@link AttributeContainer#removeAttribute(String, AttributeType)}
*
*
* @author Elliot Ford
*
* @see SetAttribute
* @see SetAttributeFunction
*
*/
public class SetAttributeMethod implements EntityMethod {
private final String name;
private final AttributeType
© 2015 - 2024 Weber Informatics LLC | Privacy Policy