public void setResource( boolean _shape, boolean _color, boolean _size,
                           boolean _weight, boolean _healthy ){
    int ONES_MASK = (0xFFFFFFFF);
    int color = _color?ONES_MASK:~(1<<6);
    int shape = _shape?ONES_MASK:~(1<<7);
    int size = _size?ONES_MASK:~(1<<8);
    int weight = _weight?ONES_MASK:~(1<<9);
    int healthy = _healthy?ONES_MASK:~(1<<10);
    resource = color & shape & size & weight & healthy;
  }