All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.libs.jaicore.planning.classical.problems.strips.PlanningDomain Maven / Gradle / Ivy

package ai.libs.jaicore.planning.classical.problems.strips;

import java.util.Collection;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

public class PlanningDomain {

	private final Collection operations;

	public PlanningDomain(final Collection operations) {
		super();
		this.operations = operations;
	}

	public Collection getOperations() {
		return this.operations;
	}

	@Override
	public int hashCode() {
		return new HashCodeBuilder().append(this.operations).toHashCode();
	}

	@Override
	public boolean equals(final Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof PlanningDomain)) {
			return false;
		}
		PlanningDomain other = (PlanningDomain) obj;
		return new EqualsBuilder().append(other.operations, this.operations).isEquals();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy