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

aima.core.environment.vacuum.FullyObservableVacuumEnvironmentPerceptToStateFunction Maven / Gradle / Ivy

Go to download

AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.

There is a newer version: 3.0.0
Show newest version
package aima.core.environment.vacuum;

import aima.core.agent.Percept;
import aima.core.search.framework.PerceptToStateFunction;

/**
 * Map fully observable state percepts to their corresponding state
 * representation.
 * 
 * @author Andrew Brown
 */
public class FullyObservableVacuumEnvironmentPerceptToStateFunction implements
		PerceptToStateFunction {

	/**
	 * Default Constructor.
	 */
	public FullyObservableVacuumEnvironmentPerceptToStateFunction() {

	}

	@Override
	public Object getState(Percept p) {
		// Note: VacuumEnvironmentState implements
		// FullyObservableVacuumEnvironmentPercept
		return (VacuumEnvironmentState) p;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy