Class GraphTCSP

java.lang.Object
edu.fiu.jtlex.data.GraphTCSP
All Implemented Interfaces:
ITCSP

public class GraphTCSP extends Object implements ITCSP
Implements a TimeML Graph as a Temporal Constraint Satisfaction Problem
Since:
Revision 772
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    GraphTCSP(IGraph timeMlGraph)
    Transforms the TimeML Graph into a Temporal Constraint Satisfaction Problem.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jacop.core.Store
    Get the constraints store
    org.jacop.core.IntVar[]
    Get the time points

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GraphTCSP

      public GraphTCSP(IGraph timeMlGraph)
      Transforms the TimeML Graph into a Temporal Constraint Satisfaction Problem. This method created two JaCoP IntVars per node, one for the start point, the other for the end point, and asserts constraints depending on the types of links in the graph.
      Parameters:
      timeMlGraph - A partitioned timeML graph to convert into a TCSP
      Throws:
      NullPointerException - If the graph is null
      IllegalStateException - If the graph contains any S-Link
      Since:
      Revision 772
  • Method Details

    • getStore

      public org.jacop.core.Store getStore()
      Description copied from interface: ITCSP
      Get the constraints store
      Specified by:
      getStore in interface ITCSP
      Returns:
      The store with imposed constraints
    • getTimepoints

      public org.jacop.core.IntVar[] getTimepoints()
      Description copied from interface: ITCSP
      Get the time points
      Specified by:
      getTimepoints in interface ITCSP
      Returns:
      The time points