question: public void addPerson ( Id person ) { if ( rule . getsSeatOnEnter ( person , vehicle , sittingPersons . size ( ) , standingPersons . size ( ) ) ) { addSitting ( person ) ; } else { addStanding ( person ) ; } }
target:  This adds a person to the vehicle. The SeatAssignmentRule is used to determine whether he will get a seat or not.