be.ac.ucl.tele.ccg.jXDRS
Class DRS

java.lang.Object
  extended by be.ac.ucl.tele.ccg.jXDRS.DRS
All Implemented Interfaces:
DRSOperand

public class DRS
extends java.lang.Object
implements DRSOperand


Field Summary
 java.util.LinkedHashMap discourseReferents
           
 java.util.ArrayList dRSConditions
           
 java.util.ArrayList drss
           
 
Constructor Summary
DRS()
           
 
Method Summary
 void addDiscourseReferent(DiscourseReferent dr)
           
 void addDRS(DRS drs)
          Adds a feature to the DRS attribute of the DRS object
 void addDRSCondition(DRSCondition drsCond)
          Adds a feature to the DRSCondition attribute of the DRS object
 java.util.LinkedList getAllConditionsByDr(DiscourseReferent dr)
          Gets the allConditionsByDr attribute of the DRS object
 java.util.LinkedList getAllConditionsByIndex(java.lang.String idx)
          Gets the allConditionsByIndex attribute of the DRS object
 DiscourseReferent getDrByRef(java.lang.String ref)
          Gets the drByRef attribute of the DRS object
 DRS getDRS()
          Gets the dRS attribute of the DRS object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dRSConditions

public java.util.ArrayList dRSConditions
UML type:
DRSCondition

discourseReferents

public java.util.LinkedHashMap discourseReferents
UML type:
DiscourseReferent

drss

public java.util.ArrayList drss
UML type:
DRS
Constructor Detail

DRS

public DRS()
Method Detail

addDRS

public void addDRS(DRS drs)
Adds a feature to the DRS attribute of the DRS object

Parameters:
drs - The feature to be added to the DRS attribute

addDRSCondition

public void addDRSCondition(DRSCondition drsCond)
Adds a feature to the DRSCondition attribute of the DRS object

Parameters:
drsCond - The feature to be added to the DRSCondition attribute

addDiscourseReferent

public void addDiscourseReferent(DiscourseReferent dr)
Parameters:
dr - The feature to be added to the DiscourseReferent attribute

getAllConditionsByDr

public java.util.LinkedList getAllConditionsByDr(DiscourseReferent dr)
Gets the allConditionsByDr attribute of the DRS object

Parameters:
dr - Description of the Parameter
Returns:
The allConditionsByDr value

getAllConditionsByIndex

public java.util.LinkedList getAllConditionsByIndex(java.lang.String idx)
Gets the allConditionsByIndex attribute of the DRS object

Parameters:
idx - Description of the Parameter
Returns:
The all the DRSConditions that match idx in a order (The recursion's order, that may vary from utterance's order.)
Future work:
Recursion broken ??? we need to go trough prop's What about a bidimentional data structure like a HashMap of LinkedLists!!! Add support for regex expressions.
Keep this function in midn for maintainance... we'll have to work it out a bit in the future.

getDRS

public DRS getDRS()
Gets the dRS attribute of the DRS object

Specified by:
getDRS in interface DRSOperand
Returns:
The dRS value

getDrByRef

public DiscourseReferent getDrByRef(java.lang.String ref)
Gets the drByRef attribute of the DRS object

Parameters:
ref - Description of the Parameter
Returns:
The drByRef value
Future work:
This should walk up recursively (Back track) until we have all the DRS ouside of the local scope too.


MIT style licence.