Class ProcessGraph.TearStreamResult
java.lang.Object
neqsim.process.processmodel.graph.ProcessGraph.TearStreamResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
ProcessGraph
Result of tear stream selection analysis.
- Version:
- 1.0
- Author:
- NeqSim
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<List<ProcessNode>, ProcessEdge> private static final longprivate final List<ProcessEdge> private final int -
Constructor Summary
ConstructorsConstructorDescriptionTearStreamResult(List<ProcessEdge> tearStreams, Map<List<ProcessNode>, ProcessEdge> sccToTearStream, int totalCyclesBroken) -
Method Summary
Modifier and TypeMethodDescriptionGets the mapping from each SCC to its selected tear stream.intGets the number of tear streams selected.Gets the selected tear streams (edges to break cycles).intGets the total number of cycles broken by the selected tear streams.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
tearStreams
-
sccToTearStream
-
totalCyclesBroken
private final int totalCyclesBroken
-
-
Constructor Details
-
TearStreamResult
TearStreamResult(List<ProcessEdge> tearStreams, Map<List<ProcessNode>, ProcessEdge> sccToTearStream, int totalCyclesBroken)
-
-
Method Details
-
getTearStreams
Gets the selected tear streams (edges to break cycles).- Returns:
- list of tear stream edges
-
getSccToTearStreamMap
Gets the mapping from each SCC to its selected tear stream.- Returns:
- map from SCC to tear stream
-
getTotalCyclesBroken
public int getTotalCyclesBroken()Gets the total number of cycles broken by the selected tear streams.- Returns:
- number of cycles broken
-
getTearStreamCount
public int getTearStreamCount()Gets the number of tear streams selected.- Returns:
- number of tear streams
-