We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › How to solve ambiguous types in Processing
Page Index Toggle Pages: 1
How to solve ambiguous types in Processing (Read 786 times)
How to solve ambiguous types in Processing
Apr 27th, 2010, 2:56am
 
I'm using modestmaps and flickrj in a sketch. This is ambiguity in some types, such as in:

Code:

import com.aetrion.flickr.*;
import processing.core.*;
import org.xml.sax.SAXException;
import com.aetrion.flickr.people.*;
import com.aetrion.flickr.photos.*;
import com.aetrion.flickr.FlickrException;
import com.aetrion.flickr.tags.*;
import touchatag.*;
import fullscreen.*;

InteractiveMap map;

void setup() {
// Creates a new map, optionally specify a provider
map = new InteractiveMap(this, new Microsoft.AerialProvider());

// Sets the initial location and zoom level
Location world = new Location(43.834526782236814, -37.265625);
map.setCenterZoom(world, 3);

(...)
}


The type Location is one of those cases where the type is ambiguous.

Is there a way of defining from where it should get the type?
Re: How to solve ambiguous types in Processing
Reply #1 - Apr 27th, 2010, 3:28am
 
You can use the full name, e..g if there's touchtag.Location and com.aetrion.flickr.Location, just use those full names when describing the types, e.g.

com.aetrion.flickr.Location world = new com.aetrion.flickr.Location(43.834526782236814, -37.265625);
Re: How to solve ambiguous types in Processing
Reply #2 - Apr 27th, 2010, 4:13am
 
Quote:
You can use the full name, e..g if there's touchtag.Location and com.aetrion.flickr.Location, just use those full names when describing the types, e.g.

com.aetrion.flickr.Location world = new com.aetrion.flickr.Location(43.834526782236814, -37.265625);


Problem is, I don't import nothing for modestmaps, those you referred are for the flickrj and other libraries I also need.

I just place the jar in the code folder. And there's no documentation for modestmaps also.

Re: How to solve ambiguous types in Processing
Reply #3 - Apr 27th, 2010, 4:38am
 
Inspected the jar file for modestmaps with eclipse, and it works as you said Smiley thanks a lot
Page Index Toggle Pages: 1