public void addPerson(Id person){
  boardingAtFacility.add(person);
  if (rule.getsSeatOnEnter(person,vehicle,sittingPersons.size(),standingPersons.size())) {
    addSitting(person);
  }
 else {
    addStanding(person);
  }
}

public void addPerson ( Id person ) { boardingAtFacility . add ( person ) ; if ( rule . getsSeatOnEnter ( person , vehicle , sittingPersons . size ( ) , standingPersons . size ( ) ) ) { addSitting ( person ) ; } else { addStanding ( person ) ; } }
this adds a person to the vehicle . the seatassignmentrule is used to determine whether he will get a seat or not .
