Package edu.fiu.jtlex.algorithms
Interface IInconsistencyDetector
- All Known Implementing Classes:
InconsistencyDetector
public interface IInconsistencyDetector
An abstraction for inconsistency detection.
- Since:
- jTLEX 1.0
-
Method Summary
Modifier and TypeMethodDescriptiongenerateInconsistentSubgraphs
(ITimeMLGraph timeMLGraph) Generates a set of subgraphs that contain all the links and nodes involved in the inconsistencies.generateSelfLoopingSubGraphs
(Set<ITimeMLLink> links, Set<ITimeMLNode> nodes) Given a set of links, identifies which are inconsistent self references, and produces a subgraph for each instance.boolean
isConsistent
(ITimeMLGraph timeMLGraph) A method to verify the consistency of a graph.
-
Method Details
-
isConsistent
A method to verify the consistency of a graph.- Parameters:
timeMLGraph
- A timeML graph object with a non empty set of nodes.- Returns:
- true if the graph is consistent, false if the graph is inconsistent.
- Throws:
NullPointerException
- if null is passed inIllegalStateException
- If the timeMLGraph contains any S-Link- Since:
- jTLEX 1.0
-
generateSelfLoopingSubGraphs
Given a set of links, identifies which are inconsistent self references, and produces a subgraph for each instance.- Parameters:
links
- A set of links.nodes
- A set of nodes.- Returns:
- A set of IGraphs, each containing inconsistent self looping nodes.
- Throws:
NullPointerException
- If links is null.- Since:
- jTLEX 1.0
-
generateInconsistentSubgraphs
Generates a set of subgraphs that contain all the links and nodes involved in the inconsistencies.- Parameters:
timeMLGraph
- TimeML graph to evaluate.- Returns:
- A set containing the inconsistent subgraphs.
- Throws:
NullPointerException
- if null is passed in- Since:
- jTLEX 1.0
-