Record Class ScmLaneSetEdgeMask
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmLaneSetEdgeMask
- All Implemented Interfaces:
ImpScmNode
public record ScmLaneSetEdgeMask(String relationName, int relationId, List<Long> trippedEdgePerLane, boolean packedMultiEdge)
extends Record
implements ImpScmNode
Per-lane tripped edge mask configuration for N-1 / N-2 contingency simulation
(opcode
0xC2 OP_LANE_SET_EDGE_MASK).-
Constructor Summary
ConstructorsConstructorDescriptionScmLaneSetEdgeMask(String relationName, int relationId, List<Long> trippedEdgePerLane, boolean packedMultiEdge) Creates an instance of aScmLaneSetEdgeMaskrecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) final booleanIndicates whether some other object is "equal to" this one.static ScmLaneSetEdgeMaskfromInlinePairs(String relationName, List<Long> edgeLanePairs) final inthashCode()Returns a hash code value for this object.static ScmLaneSetEdgeMaskbooleanReturns the value of thepackedMultiEdgerecord component.intpairsReg()intReturns the value of therelationIdrecord component.Returns the value of therelationNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrippedEdgePerLanerecord component.withRelationId(int id)
-
Constructor Details
-
ScmLaneSetEdgeMask
public ScmLaneSetEdgeMask(String relationName, int relationId, List<Long> trippedEdgePerLane, boolean packedMultiEdge) Creates an instance of aScmLaneSetEdgeMaskrecord class.- Parameters:
relationName- the value for therelationNamerecord componentrelationId- the value for therelationIdrecord componenttrippedEdgePerLane- the value for thetrippedEdgePerLanerecord componentpackedMultiEdge- the value for thepackedMultiEdgerecord component
-
-
Method Details
-
of
-
fromInlinePairs
-
pairsReg
public int pairsReg() -
edgeLanePairs
-
withRelationId
-
toScmString
- Specified by:
toScmStringin interfaceImpScmNode
-
accept
- Specified by:
acceptin interfaceImpScmNode
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
relationName
Returns the value of therelationNamerecord component.- Returns:
- the value of the
relationNamerecord component
-
relationId
public int relationId()Returns the value of therelationIdrecord component.- Returns:
- the value of the
relationIdrecord component
-
trippedEdgePerLane
-
packedMultiEdge
public boolean packedMultiEdge()Returns the value of thepackedMultiEdgerecord component.- Returns:
- the value of the
packedMultiEdgerecord component
-