* should be considered. In this case, the list will be ordered by the sequence id. False for all sockets.
* @return The list of exit sockets (contains {@link SocketDescriptor} objects) or null if no such node could be found
*/
public static List determinePossibleExits(NodeSocket currentSocket, Class desiredNodeClass, boolean sequenceIdSocketsOnly)
{
Node node = findNextMatchingNode(currentSocket, desiredNodeClass);
if (node == null)
return null;
List ret = new ArrayList();
// Get sockets in order of sequence number and add to return list
Iterator itSockets;
if (sequenceIdSocketsOnly)
itSockets = node.getOrderedSockets();
else
itSockets = node.getSockets();
while (itSockets.hasNext())
{
NodeSocket socket = (NodeSocket) itSockets.next();