I have a student class that has two associations: Graduate and Undergraduate. I am trying to create an invariant that makes sure no student is associated with both. I am very new to OCL and do not know the approach to this or syntax. I am thinking I need to have something like Student.allInstances->forAll( something here)
But I don't know.
Thanks!