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

    Constructors
    Constructor
    Description
    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 a StructuralMember record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the crossSectionArea record component.
    double
    Returns the value of the endX record component.
    double
    Returns the value of the endY record component.
    double
    Returns the value of the endZ record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    id()
    Returns the value of the id record component.
    Returns the value of the material record component.
    double
    Returns the value of the momentOfInertia record component.
    double
    Returns the value of the startX record component.
    double
    Returns the value of the startY record component.
    double
    Returns the value of the startZ record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the type record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a StructuralMember record class.
      Parameters:
      id - the value for the id record component
      type - the value for the type record component
      startX - the value for the startX record component
      startY - the value for the startY record component
      startZ - the value for the startZ record component
      endX - the value for the endX record component
      endY - the value for the endY record component
      endZ - the value for the endZ record component
      crossSectionArea - the value for the crossSectionArea record component
      momentOfInertia - the value for the momentOfInertia record component
      material - the value for the material record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • startX

      public double startX()
      Returns the value of the startX record component.
      Returns:
      the value of the startX record component
    • startY

      public double startY()
      Returns the value of the startY record component.
      Returns:
      the value of the startY record component
    • startZ

      public double startZ()
      Returns the value of the startZ record component.
      Returns:
      the value of the startZ record component
    • endX

      public double endX()
      Returns the value of the endX record component.
      Returns:
      the value of the endX record component
    • endY

      public double endY()
      Returns the value of the endY record component.
      Returns:
      the value of the endY record component
    • endZ

      public double endZ()
      Returns the value of the endZ record component.
      Returns:
      the value of the endZ record component
    • crossSectionArea

      public double crossSectionArea()
      Returns the value of the crossSectionArea record component.
      Returns:
      the value of the crossSectionArea record component
    • momentOfInertia

      public double momentOfInertia()
      Returns the value of the momentOfInertia record component.
      Returns:
      the value of the momentOfInertia record component
    • material

      public String material()
      Returns the value of the material record component.
      Returns:
      the value of the material record component