Class RowInfo
java.lang.Object
org.episteme.natural.physics.classical.waves.electromagnetism.circuit.RowInfo
Helper class for matrix row information during circuit analysis.
Used to track row types and simplifications in Modified Nodal Analysis.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether this row should be dropped from the simplified matrixbooleanWhether the left side of this row changes during doStep()intColumn index after matrix mappingintRow index after matrix mappingintNode index that this row equals (if type is ROW_EQUAL)static final intConstant row type - value is knownstatic final intEqual row type - value equals another nodestatic final intNormal row type - requires solvingbooleanWhether the right side of this row changes during doStep()intRow type (ROW_NORMAL, ROW_CONST, or ROW_EQUAL)doubleConstant value (if type is ROW_CONST) -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ROW_NORMAL
public static final int ROW_NORMALNormal row type - requires solving- See Also:
-
ROW_CONST
public static final int ROW_CONSTConstant row type - value is known- See Also:
-
ROW_EQUAL
public static final int ROW_EQUALEqual row type - value equals another node- See Also:
-
type
public int typeRow type (ROW_NORMAL, ROW_CONST, or ROW_EQUAL) -
mapCol
public int mapColColumn index after matrix mapping -
mapRow
public int mapRowRow index after matrix mapping -
value
public double valueConstant value (if type is ROW_CONST) -
nodeEq
public int nodeEqNode index that this row equals (if type is ROW_EQUAL) -
lsChanges
public boolean lsChangesWhether the left side of this row changes during doStep() -
rsChanges
public boolean rsChangesWhether the right side of this row changes during doStep() -
dropRow
public boolean dropRowWhether this row should be dropped from the simplified matrix
-
-
Constructor Details
-
RowInfo
public RowInfo()Creates a new row info with default values.
-