Package edu.fiu.jtlex.data
Class GraphTCSP
java.lang.Object
edu.fiu.jtlex.data.GraphTCSP
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.jacop.core.StoregetStore()This method is meant to allow for getting the values held in the store.List<org.jacop.core.IntVar>solve()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.
-
Constructor Details
-
GraphTCSP
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
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
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
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
-