[gme-users] JBUilderObject connection

Brian Williams BrianW at isis.vanderbilt.edu
Fri May 21 13:30:17 CDT 2004


I think you're right; I'll test it out and fix it in the gme source if
that's the case.

Brian

-----Original Message-----
From: Francisco Hernandez [mailto:hernandf at cis.uab.edu] 
Sent: Thursday, May 20, 2004 7:45 PM
To: gme-users
Cc: Francisco Hernandez
Subject: [gme-users] JBUilderObject connection

In JBuilderObject (Java version of BON), method getOutConnectedObjects,

public boolean getOutConnectedObjects(String name, Vector list[])
	{	Vector conns = getOutConnections(name);
		list[0] = new Vector();
		if(conns==null)
			return false;
		int coCount = conns.size();
		for(int i=0;i<coCount;i++)
		{	JBuilderConnection conn = (JBuilderConnection)
                                                  conns.elementAt(i);
			list[0].addElement(conn.getSource());
		}
		return true;
	}

inf the for loop, instead of being

list[0].addElement(conn.getSource());

i think that it should be
list[0].addElement(conn.getDestination());

with getSource() we get the in connected object instead of the out
connected object.

thanks,

Francisco


----------------------------------------------------------------
Francisco Hernandez
Department of Computer and Information Sciences
University of Alabama at Birmingham
hernandf at cis.uab.edu

_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


More information about the gme-users mailing list