info.sswap.impl.empire.model
Class ProtocolImpl.DefaultMappingValidator<T extends SSWAPNode>

java.lang.Object
  extended by info.sswap.impl.empire.model.ProtocolImpl.DefaultMappingValidator<T>
All Implemented Interfaces:
ProtocolImpl.MappingValidator<T>
Enclosing class:
ProtocolImpl

public class ProtocolImpl.DefaultMappingValidator<T extends SSWAPNode>
extends java.lang.Object
implements ProtocolImpl.MappingValidator<T>


Nested Class Summary
 
Nested classes/interfaces inherited from interface info.sswap.impl.empire.model.ProtocolImpl.MappingValidator
ProtocolImpl.MappingValidator.MappingType
 
Field Summary
private  ProtocolImpl.MappingValidator.MappingType mappingType
           
 
Constructor Summary
ProtocolImpl.DefaultMappingValidator()
           
ProtocolImpl.DefaultMappingValidator(ProtocolImpl.MappingValidator.MappingType mappingType)
           
 
Method Summary
 boolean isMappingValid(T protocolIndividual, T rdgIndividual)
          Checks whether it is valid to associate the individual in the Protocol graph with the individual in the RDG.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mappingType

private final ProtocolImpl.MappingValidator.MappingType mappingType
Constructor Detail

ProtocolImpl.DefaultMappingValidator

public ProtocolImpl.DefaultMappingValidator()

ProtocolImpl.DefaultMappingValidator

public ProtocolImpl.DefaultMappingValidator(ProtocolImpl.MappingValidator.MappingType mappingType)
Method Detail

isMappingValid

public boolean isMappingValid(T protocolIndividual,
                              T rdgIndividual)
Description copied from interface: ProtocolImpl.MappingValidator
Checks whether it is valid to associate the individual in the Protocol graph with the individual in the RDG.

Specified by:
isMappingValid in interface ProtocolImpl.MappingValidator<T extends SSWAPNode>
Parameters:
protocolIndividual - the individual from the Protocol graph that should be checked
rdgIndividual - the individual from the RDG that should be checked
Returns:
true if the two individuals can be associated


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.