Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » AMP » Tutorials Problem with Actions Part 2
Tutorials Problem with Actions Part 2 [message #784208] Fri, 27 January 2012 07:43
Mathew Grabau is currently offline Mathew GrabauFriend
Messages: 1
Registered: January 2012
Junior Member
I was working through the tutorials. I was stumped on this for the Actions Part II tutorial (

When I did (as best I understood to do) the steps described in the tutorial I was receiving a compiler error in the generated code:

	 * <!-- begin-user-doc -->
	 * Bug Rule Rule. Executed every period.
	 * <!-- end-user-doc -->
	 * @generated
	public void bugRule() {
		Object nextLocation = (Object) (( getStupidModel1()
				((org.ascape.model.CellOccupant) this).getHostCell(), null,
				false, nextLocation.getStupidModel1().getBugVision());
		if (nextLocation != null) {
			if (getHostScape() != ((Agent) nextLocation).getScape()) {
			moveTo(((HostCell) nextLocation));

The error being caught was "The method getSimpleModel1 is undefined for the type Object"

Simply modifying the
fixed the problem, and I was able to then run the model.

I am just wanting to point out this error in the generated code. Is anyone else experiencing this problem? I tried to look around this forum, but there were no results on a search. Google yielded nothing as well.

Mathew Grabau
Previous Topic:Cannot see graph view
Next Topic:Importing external jars for custom code.
Goto Forum:

Current Time: Mon Sep 25 14:40:57 GMT 2023

Powered by FUDForum. Page generated in 0.02379 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top