An Island man will go to jail for 18 months after pleading guilty to charges that include indecent assault and battery on a child.

Andrew R. Bradshaw, 49, pleaded guilty in Edgartown district court Friday to open and gross lewdness, indecent assault and battery on a child younger than 14 (amended from rape of a child with force) and two counts of enticing a child younger than 16.

Judge H. Gregory Williams ordered Mr. Bradshaw to serve two concurrent sentences of two and a half years in a house of correction, with 18 months served. The balance will be suspended for five and a half years and he will be placed on probation until May 8, 2019.

The sentences will be served in Barnstable or Bristol counties.

Mr. Bradshaw was arrested Sept. 5 and charged with assaulting and exposing himself to two girls, ages 11 and 12, who knew him. The cases dated to June and September of 2012.

He also allegedly violated no contact orders relating to the case.

He will be required to register as a sex offender, engage in treatment as a sex offender, not to contact the victims, not to have unsupervised contact with children younger than 15 (subject to probate orders), and pay a $90 victim/witness assessment fee and a $65 monthly probation services fee.

Mr. Bradshaw also pleaded guilty to two counts of violating an abuse prevention order and one count of intimidating a witness. He was sentenced to one year in a house of correction concurrent with the other sentence and placed on probation, concurrent with the previous disposition, until Nov. 8, 2017. A third charge of violating an abuse prevention order was dismissed upon request of the commonwealth.

A plea agreement was reached between the commonwealth and Mr. Bradshaw’s attorney, J. Drew Segadelli. Cape and Islands assistant district attorney Laura Marshard said the plea agreement was reached after discussion with the victims and their family, and with hopes “to avoid any further emotional distress for the two young victims.”

Ms. Marshard added that alleged incidents are under investigation in New Hampshire and Florida.

The victims’ father and stepmother were in court and Ms. Marshard read a victim impact statement on their behalf.

“We ask that Andrew Bradshaw be given a sentence that is worthy of his crimes,” Ms. Marshard read from the letter, which detailed periods of sadness and anger that the children face. The letter asked that Mr. Bradshaw serve his sentence off the Vineyard.

“He’s accountable for his actions,” Mr. Segadelli said. “And realizes that while his committed time is significant for someone who hasn’t done any time, it will likewise follow him for the rest of his life.”

“I wish I could say that this resolution today will bring closure to the victims of this defendant, but I don’t think there is, in a case like this, anything like closure,” Judge Williams said, adding that the disposition spared the victims the further trauma of coming into the courthouse.

He told the victims’ family that he hoped they would “move forward and heal as well as possible.”