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

eu.unicore.uas.json.Requirement Maven / Gradle / Ivy

The newest version!
package eu.unicore.uas.json;

import org.json.JSONObject;

/**
 * allows to check whether a given endpoint matches a requirement,
 * for example runs the needed operating system
 *
 * @author schuller
 */
public interface Requirement {

	/**
	 * check the properties and decide if it fits the requirement
	 * 
	 * @param properties - the resource properties
	 * @return true if requirement is fulfilled, false otherwise
	 */
	public boolean isFulfilled(JSONObject properties);

	/**
	 * returns a human-readable description of the requirement for logging purposes
	 */
	public String getDescription();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy