org.dishevelled.vocabulary.simple
Class SimpleProjection

java.lang.Object
  extended by org.dishevelled.vocabulary.simple.SimpleProjection
All Implemented Interfaces:
Projection

public class SimpleProjection
extends java.lang.Object
implements Projection

Simple implementation of the Projection interface.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Field Summary
private  java.util.Set<Evidence> evidence
          Set of evidence.
private  Mapping mapping
          Mapping.
private  java.lang.String name
          Projection name.
private  SimpleConcept source
          Source concept.
private  SimpleConcept target
          Source target.
 
Constructor Summary
SimpleProjection(Mapping mapping, java.lang.String name, SimpleConcept source, SimpleConcept target, java.util.Set<Evidence> evidence)
          Create a new projection in the specified mapping between concepts source and target with the specified name.
 
Method Summary
 java.util.Set<Evidence> getEvidence()
          Return the set of evidence supporting this assignment.
 Mapping getMapping()
          Return the mapping of this projection.
 java.lang.String getName()
          Return the name of this projection.
 Concept getSource()
          Return the source concept of this projection.
 Concept getTarget()
          Return the target concept of this projection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private final java.lang.String name
Projection name.


source

private final SimpleConcept source
Source concept.


target

private final SimpleConcept target
Source target.


mapping

private final Mapping mapping
Mapping.


evidence

private final java.util.Set<Evidence> evidence
Set of evidence.

Constructor Detail

SimpleProjection

SimpleProjection(Mapping mapping,
                 java.lang.String name,
                 SimpleConcept source,
                 SimpleConcept target,
                 java.util.Set<Evidence> evidence)
Create a new projection in the specified mapping between concepts source and target with the specified name. All of mapping, source, and target must not be null.

Parameters:
mapping - mapping
name - projection name
source - source concept
target - target concept
evidence - set of evidence
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Projection
Return the name of this projection.

Specified by:
getName in interface Projection
Returns:
the name
See Also:
Projection

getSource

public Concept getSource()
Description copied from interface: Projection
Return the source concept of this projection. The source concept must not be null.

Specified by:
getSource in interface Projection
Returns:
the source concept
See Also:
Projection

getTarget

public Concept getTarget()
Description copied from interface: Projection
Return the target concept of this projection. The target concept must not be null.

Specified by:
getTarget in interface Projection
Returns:
the target concept
See Also:
Projection

getMapping

public Mapping getMapping()
Description copied from interface: Projection
Return the mapping of this projection. The mapping must not be null.

Specified by:
getMapping in interface Projection
Returns:
the mapping
See Also:
Projection

getEvidence

public java.util.Set<Evidence> getEvidence()
Description copied from interface: Projection
Return the set of evidence supporting this assignment. The set must not be null, but may be empty.

Specified by:
getEvidence in interface Projection
Returns:
the set of evidence
See Also:
Projection


Copyright (c) 2002-2004 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).