public void clear(){
  items.clear();
  Iterator siter=springs.iterator();
  Spring.SpringFactory f=Spring.getFactory();
  while (siter.hasNext())   f.reclaim((Spring)siter.next());
  springs.clear();
}

public void clear ( ) { items . clear ( ) ; Iterator siter = springs . iterator ( ) ; Spring . SpringFactory f = Spring . getFactory ( ) ; while ( siter . hasNext ( ) ) f . reclaim ( ( Spring ) siter . next ( ) ) ; springs . clear ( ) ; }
clear this simulator , removing all forceitem and spring instances for the simulator .
