org.semanticweb.elk.reasoner.taxonomy.impl.UpdateableInstanceNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elk-reasoner Show documentation
Show all versions of elk-reasoner Show documentation
The core ELK Reasoner package
The newest version!
/*
* #%L
* ELK Reasoner
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2011 - 2012 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.impl;
import java.util.Set;
import org.semanticweb.elk.owl.interfaces.ElkEntity;
import org.semanticweb.elk.reasoner.taxonomy.model.GenericInstanceNode;
import org.semanticweb.elk.reasoner.taxonomy.model.GenericTypeNode;
import org.semanticweb.elk.reasoner.taxonomy.model.InstanceNode;
/**
* Updateable generic instance node that can be associated with nodes of types
* of its instances.
*
* @author Pavel Klinov
*
* [email protected]
* @author Peter Skocovsky
*
* @param
* The type of members of associated type nodes.
* @param
* The type of members of this nodes.
* @param
* The immutable type of type nodes with which this node may be
* associated.
* @param
* The immutable type of instance nodes with which this node may be
* associated.
* @param
* The mutable type of type nodes with which this node may be
* associated.
* @param
* The mutable type of instance nodes with which this node may be
* associated.
*/
public interface UpdateableInstanceNode<
T extends ElkEntity,
I extends ElkEntity,
TN extends GenericTypeNode,
IN extends GenericInstanceNode,
UTN extends UpdateableTypeNode,
UIN extends UpdateableInstanceNode
>
extends UpdateableNode, InstanceNode {
/**
* Returns an immutable set of all direct type nodes without the bottom
* node.
*
* @return an immutable set of all direct type nodes without the bottom
* node.
*/
Set extends UTN> getDirectNonBottomTypeNodes();
/**
* Associates this node with its direct type node.
*
* @param typeNode
* The type node with which this node should be associated.
*/
void addDirectTypeNode(UTN typeNode);
/**
* Deletes the association between this node and the specified type node.
*
* @param typeNode
* The type node with which this node should not be associated.
*/
void removeDirectTypeNode(UTN typeNode);
/**
* A subinterface with fixed type parameters.
*
* @author Peter Skocovsky
*
* @param
* The type of members of associated type nodes.
* @param
* The type of members of this nodes.
*/
public static interface Projection
extends UpdateableInstanceNode<
T,
I,
GenericTypeNode.Projection,
GenericInstanceNode.Projection,
UpdateableTypeNode.Projection,
Projection
>, GenericInstanceNode.Projection {
// Empty.
}
}