edu.upenn.cis.propbank_shen
Class PASLoc

java.lang.Object
  extended by edu.upenn.cis.propbank_shen.PASLoc

public class PASLoc
extends Object

This class represents the location of a predicate argument structure. It consists of a filename, a sentence number (starting with 0) and a terminal number in the sentence (starting with 0).

Author:
Scott Cotton
See Also:
PBConfig

Constructor Summary
PASLoc(String p, int sno, int tno)
          A constructor -- you supply the pieces, we supply the Object.
 
Method Summary
 boolean equals(Object o)
          return true iff o is the same PASLoc as this object
 File getPath()
          return the full path of the file to which this location refers.
 int hashCode()
          Produce a hash code for this instance
static PASLoc ofString(String s)
          given a canonical string representing a location of a predicate, return a corresponding PASLoc object.
 String toString()
          construct a canonical string from the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PASLoc

public PASLoc(String p,
              int sno,
              int tno)
A constructor -- you supply the pieces, we supply the Object.

Method Detail

getPath

public File getPath()
return the full path of the file to which this location refers.


toString

public String toString()
construct a canonical string from the object.

Overrides:
toString in class Object

ofString

public static PASLoc ofString(String s)
                       throws CorruptDataException
given a canonical string representing a location of a predicate, return a corresponding PASLoc object.

Parameters:
s - the canonical string representation of a PAS location
Throws:
CorruptDataException

equals

public boolean equals(Object o)
return true iff o is the same PASLoc as this object

Overrides:
equals in class Object

hashCode

public int hashCode()
Produce a hash code for this instance

Overrides:
hashCode in class Object