Module org.dyn4j

Class InteractionEdge<T>

  • Type Parameters:
    T - the interaction type
    Direct Known Subclasses:
    ContactEdge, JointEdge

    abstract class InteractionEdge<T>
    extends java.lang.Object
    Represents an interaction of a body in an interaction graph.
    Since:
    3.2.0
    Version:
    3.2.0
    Author:
    William Bittle
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) T interaction
      The interaction between the bodies
      (package private) Body other
      The connected body
    • Constructor Summary

      Constructors 
      Constructor Description
      InteractionEdge​(Body other, T interaction)
      Full constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • other

        final Body other
        The connected body
      • interaction

        final T interaction
        The interaction between the bodies
    • Constructor Detail

      • InteractionEdge

        public InteractionEdge​(Body other,
                               T interaction)
        Full constructor.
        Parameters:
        other - the other Body in contact
        interaction - the interaction
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object