Class GraphTCSP

java.lang.Object
edu.fiu.jtlex.data.GraphTCSP

public class GraphTCSP extends Object
Converts a TimeML Graph into a Temporal Constraint Satisfaction Problem (TCSP) as follows: Each node in the TimeML graph represents an event or time. These are converted to time points in the TCSP. For each node N we get two time points N- for the begining time and N+ for the end time. Each timeML link is converted to a constrain in the TCSP following a mapping between TimeML links types and primitive constrains.
Author:
luisrobaina
  • Constructor Summary

    Constructors
    Constructor
    Description
    GraphTCSP​(IGraph TMLGraph)
    Analyzes a TimeML Graph and TODO: Document Turns it into a TSCP? (Still needs clarification) makes 2 intvars, one for beg on for end.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jacop.core.Store
    This method is meant to allow for getting the values held in the store.
    List<org.jacop.core.IntVar>
    Makes us of Jacop to solve the TCSP problem.
    List<org.jacop.core.IntVar>
    Assigns integer values to the JaCoP problems shortest solutions.
    Returns a full string representation of the timeline.

    Methods inherited from class java.lang.Object

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

    • GraphTCSP

      public GraphTCSP​(IGraph TMLGraph)
      Analyzes a TimeML Graph and TODO: Document Turns it into a TSCP? (Still needs clarification) makes 2 intvars, one for beg on for end.
      Parameters:
      TMLGraph - a pre-partitioned TimeML graph, which therefore contains no S-Links
  • Method Details

    • solveRandom

      public List<org.jacop.core.IntVar> solveRandom()
      Assigns integer values to the JaCoP problems shortest solutions.
      Returns:
      A list of strings corresponding to the timepoints and the numerical value assigned to it for ordering or null if there is no solution.
    • solve

      public List<org.jacop.core.IntVar> solve()
      Makes us of Jacop to solve the TCSP problem.
      Returns:
      JaCoP compatible units of the form {ID:Int}
      See Also:
      org.JaCoP.search, JaCoP <IntVar>
    • stringTimeLine

      public List<String> stringTimeLine()
      Returns a full string representation of the timeline. This string will only apply to the current partition.
      Returns:
      a full string representation of the timeline.
    • getStore

      public org.jacop.core.Store getStore()
      This method is meant to allow for getting the values held in the store.
      Returns:
      jacop objects used to store IntVars
      See Also:
      JaCoP <T extends Var> , org.JaCoP.search