Class NetworkStruct
-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Cloneable
,jline.lang.Copyable
public class NetworkStruct implements Copyable, Cloneable
Class summarizing the characteristics of a Network object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NetworkStruct()
-
Method Summary
Modifier and Type Method Description List<Station>
getStations()
Returns the list of stations in the network. void
validateStructuralConsistency()
Validates the structural consistency of stations, stateful nodes, and nodes according to MATLAB implementation requirements. boolean
isConsistentWithMatlab()
Checks if this NetworkStruct is consistent with MATLAB implementation. void
print()
Print comprehensive information about this NetworkStruct. -
-
Method Detail
-
getStations
List<Station> getStations()
Returns the list of stations in the network.
- Returns:
List of Station objects
-
validateStructuralConsistency
void validateStructuralConsistency()
Validates the structural consistency of stations, stateful nodes, and nodes according to MATLAB implementation requirements. This method ensures: 1. All stations are stateful nodes (stations ⊆ stateful) 2. All stateful nodes are nodes (stateful ⊆ nodes) 3. Hash mapping consistency between node types 4. Count consistency for nstations, nstateful, nnodes
-
isConsistentWithMatlab
boolean isConsistentWithMatlab()
Checks if this NetworkStruct is consistent with MATLAB implementation. This is a convenience method that calls validateStructuralConsistency and returns true if no exceptions are thrown.
- Returns:
true if structure is consistent, false otherwise
-
print
void print()
Print comprehensive information about this NetworkStruct. This method displays all fields, matrices, lists, and maps in a formatted manner useful for debugging and inspection.
-
-
-
-