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.double
Returns 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.int
Returns the length of the timeline.boolean
Checks 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
- anIInconsistencyDetector
to detect inconsistencies.indeterminacyDetector
- anIIndeterminacyDetector
to detect indeterminacies.partitioner
- anIPartitioner
to partition the graph.disconnectivityProcessor
- anIDisconnectivityProcessor
to find disconnectivities.tcspSolver
- anIGraphTCSPSolver
to 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:
getPartitions
in interfaceITLEX
- Returns:
- The list of partitions.
- Since:
- jTLEX 1.0
-
getConsistentPartitions
Gets a list of the consistent partitions.- Specified by:
getConsistentPartitions
in interfaceITLEX
- Returns:
- The list of consistent partitions.
- Since:
- jTLEX 1.0
-
getInconsistentPartitions
Gets a list of the inconsistent partitions- Specified by:
getInconsistentPartitions
in 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:
getInconsistentSubGraphs
in interfaceITLEX
- Returns:
- The set of inconsistent partitions
- Since:
- jTLEX 1.0
-
getSolutions
The list of solutions for the graph.- Specified by:
getSolutions
in interfaceITLEX
- Returns:
- The list of string representing solutions.
- Since:
- jTLEX 1.0
-
getTimeline
Returns the timeline of the graph.- Specified by:
getTimeline
in 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:
getTimelineLength
in 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:
getIndeterminantTimePairs
in 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:
getIndeterminacyScore
in 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:
isConsistent
in 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.
-