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, ITimeMLGraph originalGraph) Given a set of links, identifies which are inconsistent self references, and produces a subgraph for each instance.booleanisConsistent(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
Set<ITimeMLGraph> generateSelfLoopingSubGraphs(Set<ITimeMLLink> links, Set<ITimeMLNode> nodes, ITimeMLGraph originalGraph) 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.originalGraph- The parent graph.- 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
-