Class CCUS_FMA
java.lang.Object
|
+--CCUS_FMA
- public class CCUS_FMA
- extends java.lang.Object
The class `CCUS_FMA' implements the basic Frame Matching Algorithm for the
Comparative Constraint-Understanding System (this is much like the case
matching algorithm in class Case).
This class is not meant to be instantiated.
Method Summary |
static void |
indent()
Print _indent number of '>'s at the beginning of a line. |
static boolean |
matchFillers(java.lang.Object filler1,
java.lang.Object filler2)
Matches two slot fillers - one from the first frame, one from the
second. |
static boolean |
matchFillers(java.lang.Object filler1,
java.lang.Object filler2,
Slot slot,
byte mode,
java.lang.Object subsForSelf,
EntityPair entityPair)
Matches two slot fillers - one from the first frame, one from the
second. |
static boolean |
matchFrames(Frame frame1,
Frame frame2,
byte mode,
java.lang.Object subsForSelf,
EntityPair entityPair)
Compares a frame in one model with a frame in the other. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_numberOfComparisons
public static int _numberOfComparisons
_numberOfHLCComparisons
public static int _numberOfHLCComparisons
_numberOfDifferences
public static int _numberOfDifferences
CCUS_FMA
public CCUS_FMA()
indent
public static void indent()
- Print _indent number of '>'s at the beginning of a line.
matchFrames
public static boolean matchFrames(Frame frame1,
Frame frame2,
byte mode,
java.lang.Object subsForSelf,
EntityPair entityPair)
- Compares a frame in one model with a frame in the other. The
Boolean value it returns is of secondary importance to the
correspondences it infers and the differences it finds. A
precondition is that the frames have already been inferred to
correspond, but this method could return false if the
correspondence is only plausible and has to be retracted.
- Parameters:
frame1
- The frame to compare in the first model.frame2
- The frame to compare in the second model.mode
- Which mode it's comparing in (CORRESPONDENCE or
PLAUSIBLE_CORRESPONDENCE).subsForSelf
- A value to substitute for SELF (optional - can
be null).entityPair
- The current entity-pair for the summarised output
(optional).- Returns:
- True, unless the comparison fails.
matchFillers
public static boolean matchFillers(java.lang.Object filler1,
java.lang.Object filler2)
- Matches two slot fillers - one from the first frame, one from the
second. This method just calls
matchFillers(filler1,filler2,null,null)
- Parameters:
filler1
- A slot filler from the first frame.filler2
- A (corresponding) slot filler from the second frame.- Returns:
- Whether the two slot fillers match.
matchFillers
public static boolean matchFillers(java.lang.Object filler1,
java.lang.Object filler2,
Slot slot,
byte mode,
java.lang.Object subsForSelf,
EntityPair entityPair)
- Matches two slot fillers - one from the first frame, one from the
second.
- Parameters:
filler1
- A slot filler from the first frame.filler2
- A (corresponding) slot filler from the second frame.slot
- The slot whose fillers are being matched (optional -
can be null). This is for the information of matching
procedures that take the type of the slot into account.mode
- Which mode it's comparing in (CORRESPONDENCE or
PLAUSIBLE_CORRESPONDENCE).subsForSelf
- A value to substitute for SELF (optional - can
be null).entityPair
- The current entity-pair for the summarised output
(optional).- Returns:
- Whether the two slot fillers match.