net.sourceforge.fluxion.runcible.graph
Interface MappingNode

All Superinterfaces:
Node
All Known Implementing Classes:
DataConstantNode, DataValueNode, IndividualNode, MemberOfNode, ObjectValueNode, OWLMappingNode, RestrictedNode, WalkedToDataNode, WalkedToObjectNode

public interface MappingNode
extends Node

A specific type of Node that retains a mapping reference to another Node. This is of use in Runcible, as it allows mappings to be created between Nodes in different graphs. This allows mapping rules to be created.

Version:
1.0
Author:
Tony Burdett

Method Summary
 void addMapping(MappingNode node)
          Add the identifier of a node that this node maps to
 java.util.Set<MappingNode> getMappings()
          Returns the set of identifiers of all nodes that this node maps to.
 void removeMapping(MappingNode node)
          Remove a mapping, using the identifier or the node this node maps to
 
Methods inherited from interface net.sourceforge.fluxion.graph.Node
accept, getLabel, setLabel
 

Method Detail

addMapping

void addMapping(MappingNode node)
Add the identifier of a node that this node maps to

Parameters:
node - the MappingNode to add a mapping to

removeMapping

void removeMapping(MappingNode node)
Remove a mapping, using the identifier or the node this node maps to

Parameters:
node - the MappingNode to remove a mapping from

getMappings

java.util.Set<MappingNode> getMappings()
Returns the set of identifiers of all nodes that this node maps to. As this node has no knowledge of other graphs, these nodes should then be looked up in the graph mapped to.

Returns:
the set of identifiers


Copyright © 2010. All Rights Reserved.