Package edu.fiu.jtlex.timeml.data
Class TimeMLGraphTCSP
java.lang.Object
edu.fiu.jtlex.timeml.data.TimeMLGraphTCSP
- All Implemented Interfaces:
ITimeMLGraphTCSP
Implements a TimeML Graph as a Temporal Constraint Satisfaction Problem.
Also acts as an abstraction for creating Stores.
- Since:
- jTLEX 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimeMLGraphTCSP(ITimeMLGraph timeMlGraph) Transforms the TimeML Graph into a Temporal Constraint Satisfaction Problem. -
Method Summary
Modifier and TypeMethodDescriptionorg.jacop.core.StoregetStore()Get the constraints storeorg.jacop.core.IntVar[]Get the time points
-
Constructor Details
-
TimeMLGraphTCSP
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 nullIllegalStateException- If the graph contains any S-Link- Since:
- jTLEX 1.0
-
-
Method Details
-
getStore
public org.jacop.core.Store getStore()Description copied from interface:ITimeMLGraphTCSPGet the constraints store- Specified by:
getStorein interfaceITimeMLGraphTCSP- Returns:
- The store with imposed constraints
-
getTimepoints
public org.jacop.core.IntVar[] getTimepoints()Description copied from interface:ITimeMLGraphTCSPGet the time points- Specified by:
getTimepointsin interfaceITimeMLGraphTCSP- Returns:
- The time points
-