Class MechanismObject2d

    • Constructor Detail

      • MechanismObject2d

        protected MechanismObject2d​(String name)
        Create a new Mechanism node object.
        Parameters:
        name - the node's name, must be unique.
    • Method Detail

      • append

        public final <T extends MechanismObject2d> T append​(T object)
        Append a Mechanism object that is based on this one.
        Type Parameters:
        T - The object type.
        Parameters:
        object - the object to add.
        Returns:
        the object given as a parameter, useful for variable assignments and call chaining.
        Throws:
        UnsupportedOperationException - if the object's name is already used - object names must be unique.
      • updateEntries

        protected abstract void updateEntries​(NetworkTable table)
        Update all entries with new ones from a new table.
        Parameters:
        table - the new table.