Class ParticleSpring


  • public class ParticleSpring
    extends CFacade
    Generated facet for DNA struct type 'ParticleSpring'.

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct ParticleSpring.

        It is required when allocating a new block to store data for ParticleSpring.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__rest_length

        public static final long[] __DNA__FIELD__rest_length
        Field descriptor (offset) for struct member 'rest_length'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         ParticleSpring particlespring = ...;
         CPointer<Object> p = particlespring.__dna__addressof(ParticleSpring.__DNA__FIELD__rest_length);
         CPointer<Float> p_rest_length = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'rest_length'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__particle_index

        public static final long[] __DNA__FIELD__particle_index
        Field descriptor (offset) for struct member 'particle_index'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         ParticleSpring particlespring = ...;
         CPointer<Object> p = particlespring.__dna__addressof(ParticleSpring.__DNA__FIELD__particle_index);
         CPointer<CArrayFacade<Integer>> p_particle_index = p.cast(new Class[]{CArrayFacade.class, Integer.class});
         

        Metadata

        • Field: 'particle_index'
        • Signature: 'int[2]'
        • Actual Size (32bit/64bit): 8/8
      • __DNA__FIELD__delete_flag

        public static final long[] __DNA__FIELD__delete_flag
        Field descriptor (offset) for struct member 'delete_flag'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         ParticleSpring particlespring = ...;
         CPointer<Object> p = particlespring.__dna__addressof(ParticleSpring.__DNA__FIELD__delete_flag);
         CPointer<Integer> p_delete_flag = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'delete_flag'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • ParticleSpring

        public ParticleSpring​(long __address,
                              Block __block,
                              BlockTable __blockTable)
    • Method Detail

      • getRest_length

        public float getRest_length()
                             throws java.io.IOException
        Get method for struct member 'rest_length'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rest_length
      • setRest_length

        public void setRest_length​(float rest_length)
                            throws java.io.IOException
        Set method for struct member 'rest_length'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rest_length
      • getParticle_index

        public CArrayFacade<java.lang.Integer> getParticle_index()
                                                          throws java.io.IOException
        Get method for struct member 'particle_index'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__particle_index
      • setParticle_index

        public void setParticle_index​(CArrayFacade<java.lang.Integer> particle_index)
                               throws java.io.IOException
        Set method for struct member 'particle_index'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__particle_index
      • getDelete_flag

        public int getDelete_flag()
                           throws java.io.IOException
        Get method for struct member 'delete_flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__delete_flag
      • setDelete_flag

        public void setDelete_flag​(int delete_flag)
                            throws java.io.IOException
        Set method for struct member 'delete_flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__delete_flag
      • __io__addressof

        public CPointer<ParticleSpring> __io__addressof()
        Instantiates a pointer on this instance.