leila.patterns
Class StoredBridge

java.lang.Object
  extended by leila.patterns.StoredBridge
All Implemented Interfaces:
java.io.Serializable

public final class StoredBridge
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).

StoredBridge.java stores a Bridge together with the set of StoredPatterns that use it. This class uses static variables!

See Also:
Serialized Form

Field Summary
 Bridge bridge
          Holds the Bridge itself
static int bridgeCounter
          Counts all Bridges
 int id
          Identifies this Bridge
 SVMModel model
          Stores the SVMModel for this StoredBridge (used by SVMClassifier)
 double sum
          Stores sum of labels of this bridge
 java.util.List<StoredLinkagePattern> users
          Holds all stored patterns that use this Bridge
 
Constructor Summary
StoredBridge(Bridge b, LinkagePattern f)
          Constructs a StoredBridge, compresses the Bridge's Links
 
Method Summary
 boolean equals(java.lang.Object o)
          Two StoredBridges are equal if their bridges are equal
 int hashCode()
          Returns a hashCode for this Bridge
 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

bridgeCounter

public static int bridgeCounter
Counts all Bridges


id

public int id
Identifies this Bridge


bridge

public Bridge bridge
Holds the Bridge itself


users

public java.util.List<StoredLinkagePattern> users
Holds all stored patterns that use this Bridge


sum

public double sum
Stores sum of labels of this bridge


model

public SVMModel model
Stores the SVMModel for this StoredBridge (used by SVMClassifier)

Constructor Detail

StoredBridge

public StoredBridge(Bridge b,
                    LinkagePattern f)
Constructs a StoredBridge, compresses the Bridge's Links

Method Detail

hashCode

public int hashCode()
Returns a hashCode for this Bridge

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Two StoredBridges are equal if their bridges are equal

Overrides:
equals in class java.lang.Object

toString

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

Overrides:
toString in class java.lang.Object