Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import custom class to .mop file #253

Open
wolganens opened this issue Jun 16, 2019 · 0 comments
Open

Import custom class to .mop file #253

wolganens opened this issue Jun 16, 2019 · 0 comments

Comments

@wolganens
Copy link

In the HasNext example, the class Iterator is used to make the property. Is there a way to import a class from a custom package like in the code below:
`// Copyright (c) 2002-2014 JavaMOP Team. All Rights Reserved.
package mop;
import CoffeeMachineModel.CoffeeMachine;

import java.io.;
import java.util.
;

// This property requires that hasnext be called before next
// and that hasnext return true. It is a modification of the
// HasNext property from tracematches
// (see ECOOP'07 http://abc.comlab.ox.ac.uk/papers),
// with the modification requiring hasnext to return true

CheckDispenseCoffee(CoffeeMachine i) {

event dispense_coffe before(CoffeeMachine i) :
call(* CoffeeMachine.dispense_coffe())
&& target(i) { System.out.println("chamou dispense_coffe"); }

......
......

}`
I would like to check if the dispense_coffe() method was called on a CoffeeMachine Object.

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant