Class SemanticStrength

java.lang.Object
  |
  +--SemanticStrength

public class SemanticStrength
extends java.lang.Object

The class `SemanticStrength' implements the methods pertaining to the use of semantic equivalence/strength cases. This class is not meant to be instantiated.


Field Summary
static int EQUAL
           
static int GREATER
           
static int INCOMPARABLE
           
static int LESS
           
 
Constructor Summary
SemanticStrength()
           
 
Method Summary
static Case useSemanticCase(Frame frame1, Frame frame2, Slot slot, Case seCase)
          This method, which assumes that the CCUS is currently matching in PLAUSIBLE_CORRESPONDENCE mode, uses a semantic-equivalence/strength case to decide whether to fail the match, or which frame is stronger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GREATER

public static final int GREATER

LESS

public static final int LESS

EQUAL

public static final int EQUAL

INCOMPARABLE

public static final int INCOMPARABLE
Constructor Detail

SemanticStrength

public SemanticStrength()
Method Detail

useSemanticCase

public static Case useSemanticCase(Frame frame1,
                                   Frame frame2,
                                   Slot slot,
                                   Case seCase)
                            throws FailMatch
This method, which assumes that the CCUS is currently matching in PLAUSIBLE_CORRESPONDENCE mode, uses a semantic-equivalence/strength case to decide whether to fail the match, or which frame is stronger. It takes as input a semantic case, which may be null - if so, it attempts to retrieve one semantic case to use (some situations will require multiple semantic cases, but they are not supported yet).
Parameters:
frame1 - The frame to match in the first model.
frame2 - The frame to match in the second model.
slot - The slot for which a difference has been found.
seCase - The semantic-equivalence/strength case that pertains to the current frame-match, if there is one.
Returns:
seCase (if a semantic case is retrieved, the caller matchFrames needs a reference to it).
Throws:
FailMatch - Tells the caller matchFrames to fail the match if the difference means that the frames are semantically incomparable. It's the caller's responsibility to retract the correspondence.