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

org.semanticweb.elk.reasoner.taxonomy.model.Node Maven / Gradle / Ivy

There is a newer version: 0.4.3
Show newest version
/*
 * #%L
 * ELK Reasoner
 * 
 * $Id$
 * $HeadURL$
 * %%
 * Copyright (C) 2011 Department of Computer Science, University of Oxford
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package org.semanticweb.elk.reasoner.taxonomy.model;

import java.util.Set;

import org.semanticweb.elk.owl.interfaces.ElkObject;

/**
 * Basic interface for representing sets of equivalent ElkObjects with one
 * canonical representative. The notion of equivalence depends on the
 * application but will usually be implied extensional equality.
 * 
 * @author Markus Kroetzsch
 * @author "Yevgeny Kazakov"
 * 
 * @param 
 *            the type of members of the node
 */
public interface Node {

	/**
	 * Get an unmodifiable set of objects that this Node represents.
	 * 
	 * @return collection of equivalent objects
	 */
	public Set getMembers();

	/**
	 * Get one object to canonically represent the classes in this Node.
	 * 
	 * It is guaranteed that the least object is the least one according to the
	 * ordering defined by PredefinedElkIri.compare().
	 * 
	 * TODO The above remark is a bit mysterious. Does the interface really make
	 * such guarantees?
	 * 
	 * @return canonical object
	 */
	public T getCanonicalMember();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy