leila.patterns
Class LinkagePattern

java.lang.Object
  extended by leila.patterns.LinkagePattern
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
StoredLinkagePattern

public class LinkagePattern
extends java.lang.Object
implements java.io.Serializable

This class is part of LEILA (http://mpii.de/yago-naga/leila). It is licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0) by the author Fabian M. Suchanek (http://suchanek.name).

LinkagePattern.java epresents a pattern. This includes the bridge, the bases and a label. A LinkagePattern is merely a subgraph of the Linkage. This is a Wrapper Class, i.e. no deep copies are made.

See Also:
Serialized Form

Field Summary
 LinkageWord[] basis
          The two basis words
 Bridge bridge
          The bridge
 double label
          The label (confidence) of this LinkagePattern
 int sourceId
          Identifies the source of this pattern
 
Constructor Summary
LinkagePattern(LinkageWord f, java.util.List<Link> l, LinkageWord s, int sourceId)
          Constructs a LinkagePattern from two basis words and a bridge
 
Method Summary
 boolean equals(java.lang.Object o)
          Two FeatureObjects are equal if their bases and bridges coincide
 int hashCode()
          returns the hashCode
 java.lang.String toString()
          Returns a String representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

label

public double label
The label (confidence) of this LinkagePattern


basis

public LinkageWord[] basis
The two basis words


bridge

public Bridge bridge
The bridge


sourceId

public int sourceId
Identifies the source of this pattern

Constructor Detail

LinkagePattern

public LinkagePattern(LinkageWord f,
                      java.util.List<Link> l,
                      LinkageWord s,
                      int sourceId)
Constructs a LinkagePattern from two basis words and a bridge

Method Detail

equals

public boolean equals(java.lang.Object o)
Two FeatureObjects are equal if their bases and bridges coincide

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Returns a String representation

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
returns the hashCode

Overrides:
hashCode in class java.lang.Object