[gme-users] JBUilderObject connection
    Francisco Hernandez 
    hernandf at cis.uab.edu
       
    Thu May 20 21:45:13 CDT 2004
    
    
  
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
    
    
More information about the gme-users
mailing list