A get*() method always implies a corresponding set*() equivalent in Gaffer, so this should simply be weight().