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

org.semanticweb.elk.reasoner.indexing.model.ModifiableIndexedDefinedClass Maven / Gradle / Ivy

package org.semanticweb.elk.reasoner.indexing.model;

/*
 * #%L
 * ELK Reasoner
 * $Id:$
 * $HeadURL:$
 * %%
 * Copyright (C) 2011 - 2014 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%
 */

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

/**
 * An {@link IndexedDefinedClass} that can be modified as a result of updating the
 * {@link ModifiableOntologyIndex} where this object is stored.
 * 
 * @author "Yevgeny Kazakov"
 *
 */
public interface ModifiableIndexedDefinedClass
		extends ModifiableIndexedClass, IndexedDefinedClass {

	/**
	 * Set the given {@link ModifiableIndexedClassExpression} as a definition of
	 * this {@link IndexedClass} if is not defined
	 * 
	 * @param definition
	 *            the new definition for this {@link IndexedClass}
	 * @param reason
	 *            the {@link ElkAxiom} from which the definition originates
	 * @return {@code true} if this operation is successful or {@code false}
	 *         otherwise; the letter is returned if this {@link IndexedClass}
	 *         was already defined ({@link #getDefinition()} returns
	 *         {@code null})
	 */
	boolean setDefinition(ModifiableIndexedClassExpression definition,
			ElkAxiom reason);

	/**
	 * Removes the definition for this {@link IndexedClass}; after calling this
	 * method, {@link #getDefinition()} returns {@code null}
	 */
	void removeDefinition();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy