A Danish model accused of hitting a flight attendant on a plane from Amsterdam to Miami will participate in an anger management program under an agreement announced Tuesday.

May Andersen, a former Sports Illustrated swimsuit model, will be allowed to take the four- to five-hour course either in New York, where she has an apartment, or in her home of Copenhagen, Denmark.

If she completes the course successfully, the charges will be dropped, Assistant State Attorney Carolyn Zegeer said.

Click Here for the Celebrities in Trouble Center

Andersen was charged with simple battery, resisting arrest without violence and disorderly intoxication after the arrest in April. She was not in court Tuesday.

"She has flown all around the world since she was discovered when she was 13 and has never been in trouble before. She has a slightly different version as to what happened than the airport people but things are different since 9/11," said her attorney, Robert Rosenblatt.

Andersen is currently in Copenhagen and has visited the United States since the arrest, Rosenblatt said. The charge has not affected her immigration status.

Had Andersen been convicted of all counts, she could have faced up to two years in prison.