When a defendant is charged with an offense which is not alleged to have been committed by force or violence or threat thereof, the court may order the case to be dismissed upon motion and a showing that:
(1) the public interest will not be adversely affected; and
(2) the attorney for the Commonwealth consents to the dismissal; and
(3) satisfaction has been made to the aggrieved person or there is an agreement that satisfaction will be made to the aggrieved person; and
(4) there is an agreement as to who shall pay the costs.