Record Class StructuralLoadPath.StructuralMember
java.lang.Object
java.lang.Record
org.episteme.social.architecture.StructuralLoadPath.StructuralMember
- All Implemented Interfaces:
Serializable
- Enclosing class:
StructuralLoadPath
public static record StructuralLoadPath.StructuralMember(String id, StructuralLoadPath.MemberType type, double startX, double startY, double startZ, double endX, double endY, double endZ, double crossSectionArea, double momentOfInertia, String material)
extends Record
implements Serializable
Represents a discrete structural member with geometry and properties.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStructuralMember(String id, StructuralLoadPath.MemberType type, double startX, double startY, double startZ, double endX, double endY, double endZ, double crossSectionArea, double momentOfInertia, String material) Creates an instance of aStructuralMemberrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thecrossSectionArearecord component.doubleendX()Returns the value of theendXrecord component.doubleendY()Returns the value of theendYrecord component.doubleendZ()Returns the value of theendZrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.material()Returns the value of thematerialrecord component.doubleReturns the value of themomentOfInertiarecord component.doublestartX()Returns the value of thestartXrecord component.doublestartY()Returns the value of thestartYrecord component.doublestartZ()Returns the value of thestartZrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
StructuralMember
public StructuralMember(String id, StructuralLoadPath.MemberType type, double startX, double startY, double startZ, double endX, double endY, double endZ, double crossSectionArea, double momentOfInertia, String material) Creates an instance of aStructuralMemberrecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componentstartX- the value for thestartXrecord componentstartY- the value for thestartYrecord componentstartZ- the value for thestartZrecord componentendX- the value for theendXrecord componentendY- the value for theendYrecord componentendZ- the value for theendZrecord componentcrossSectionArea- the value for thecrossSectionArearecord componentmomentOfInertia- the value for themomentOfInertiarecord componentmaterial- the value for thematerialrecord component
-
-
Method Details
-
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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
startX
public double startX()Returns the value of thestartXrecord component.- Returns:
- the value of the
startXrecord component
-
startY
public double startY()Returns the value of thestartYrecord component.- Returns:
- the value of the
startYrecord component
-
startZ
public double startZ()Returns the value of thestartZrecord component.- Returns:
- the value of the
startZrecord component
-
endX
public double endX()Returns the value of theendXrecord component.- Returns:
- the value of the
endXrecord component
-
endY
public double endY()Returns the value of theendYrecord component.- Returns:
- the value of the
endYrecord component
-
endZ
public double endZ()Returns the value of theendZrecord component.- Returns:
- the value of the
endZrecord component
-
crossSectionArea
public double crossSectionArea()Returns the value of thecrossSectionArearecord component.- Returns:
- the value of the
crossSectionArearecord component
-
momentOfInertia
public double momentOfInertia()Returns the value of themomentOfInertiarecord component.- Returns:
- the value of the
momentOfInertiarecord component
-
material
Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-