Package edu.fiu.jtlex.algorithms
Class TLEX
java.lang.Object
edu.fiu.jtlex.algorithms.TLEX
- All Implemented Interfaces:
ITLEX
Default implementation of
ITLEX.- Since:
- jTLEX 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTLEX(ITimeMLGraph timeMLGraph) Creates a new TLEX with the specified information.TLEX(ITimeMLGraph timeMLGraph, IInconsistencyDetector inconsistencyDetector, IIndeterminacyDetector indeterminacyDetector, IPartitioner partitioner, IDisconnectivityProcessor disconnectivityProcessor, IGraphTCSPSolver tcspSolver) Creates a new TLEX with the specified information. -
Method Summary
Modifier and TypeMethodDescriptionGets a list of the consistent partitions.Gets a list of the inconsistent partitionsGets the set of inconsistent subgraphs.doubleReturns a percent value representing the indeterminacy score.Returns a list of Indeterminant Time Pairs.Gets a list of all the partitions.The list of solutions for the graph.Returns the timeline of the graph.intReturns the length of the timeline.booleanChecks if the graph is consistent.toJson()Produces a JSON representation of the object.toString()Produces a printable string representation of the object
-
Constructor Details
-
TLEX
Creates a new TLEX with the specified information.- Parameters:
timeMLGraph- The IGraph to analyze.- Throws:
NullPointerException- If the graph is null.- Since:
- jTLEX 1.0
-
TLEX
public TLEX(ITimeMLGraph timeMLGraph, IInconsistencyDetector inconsistencyDetector, IIndeterminacyDetector indeterminacyDetector, IPartitioner partitioner, IDisconnectivityProcessor disconnectivityProcessor, IGraphTCSPSolver tcspSolver) Creates a new TLEX with the specified information.- Parameters:
timeMLGraph- anITimeMLGraph, which is the graph to analyze.inconsistencyDetector- anIInconsistencyDetectorto detect inconsistencies.indeterminacyDetector- anIIndeterminacyDetectorto detect indeterminacies.partitioner- anIPartitionerto partition the graph.disconnectivityProcessor- anIDisconnectivityProcessorto find disconnectivities.tcspSolver- anIGraphTCSPSolverto solve TCSPs.- Throws:
NullPointerException- If the graph or any of the dependencies are null.- Since:
- jTLEX 1.0
-
-
Method Details
-
getPartitions
Gets a list of all the partitions.- Specified by:
getPartitionsin interfaceITLEX- Returns:
- The list of partitions.
- Since:
- jTLEX 1.0
-
getConsistentPartitions
Gets a list of the consistent partitions.- Specified by:
getConsistentPartitionsin interfaceITLEX- Returns:
- The list of consistent partitions.
- Since:
- jTLEX 1.0
-
getInconsistentPartitions
Gets a list of the inconsistent partitions- Specified by:
getInconsistentPartitionsin interfaceITLEX- Returns:
- The list of inconsistent partitions
- Since:
- jTLEX 1.0
-
getInconsistentSubGraphs
Gets the set of inconsistent subgraphs. This requires the graph to be partitioned, so if it hasn't been done already, this method as a consequence will partition the graph.- Specified by:
getInconsistentSubGraphsin interfaceITLEX- Returns:
- The set of inconsistent partitions
- Since:
- jTLEX 1.0
-
getSolutions
The list of solutions for the graph.- Specified by:
getSolutionsin interfaceITLEX- Returns:
- The list of string representing solutions.
- Since:
- jTLEX 1.0
-
getTimeline
Returns the timeline of the graph.- Specified by:
getTimelinein interfaceITLEX- Returns:
- an ITimeline object containing the timeline of the graph.
- Since:
- jTLEX 1.0
-
getTimelineLength
public int getTimelineLength()Returns the length of the timeline.- Specified by:
getTimelineLengthin interfaceITLEX- Returns:
- the length of the main timeline, -1 if graph is inconsistent.
- Since:
- jTLEX 1.0
-
getIndeterminantTimePairs
Returns a list of Indeterminant Time Pairs.- Specified by:
getIndeterminantTimePairsin interfaceITLEX- Returns:
- a list of strings containing the Indeterminant Time Pairs.
- Since:
- jTLEX 1.0
-
getIndeterminacyScore
public double getIndeterminacyScore()Returns a percent value representing the indeterminacy score.- Specified by:
getIndeterminacyScorein interfaceITLEX- Returns:
- a double that is the percent value representing the indeterminacy score.
- Since:
- jTLEX 1.0
-
isConsistent
public boolean isConsistent()Checks if the graph is consistent. This requires the graph to be partitioned, so if it hasn't been done already, this method as a consequence will partition the graph.- Specified by:
isConsistentin interfaceITLEX- Returns:
- true if the graph is consistent, else false.
- Since:
- jTLEX 1.0
-
toString
Produces a printable string representation of the object -
toJson
Produces a JSON representation of the object.
-