X-Path & Namespace question

Hi,
In x-path version 2.0, one can write a * for an arbitrary namespace, is something possible in version 1.0 ?
Example x-path '/MESSAGES/*:HEADER/PRIORITY'
returns leaf-node value of priority as of
/MESSAGES/msg1:HEADER/PRIORITY with xmlns:msg1="http//example.org/msg1.xsd"
/MESSAGES/msg2:HEADER/PRIORITY with xmlns:msg2="http//example.org/msg2.xsd"
etc etc
If this isn't possible, is there a workaround,
or in what version of the database is it possible ?
Regards,
Art

I have a table based on a schema (object-relational) which only purpose is storage of xml-messages send over a network.
The database should by queryable on on elements that are available in all message but in different namespaces / paths.
I can offcourse make a b-tree index on each leafnode in all namespaces that I want to query, but I was wondering if I could use an index with the above mentioned X-Path 2.0 behavior. I think if it is possible it will be a function based index, but that should be okay.
Any thoughts ?

Similar Messages

  • Basic namespace question

    Hello,
    A (possibly dumb) namespace question - a schema that we are coding against has the following declaration:
    <xs:schema xmlns="http://webservices.myco.com/mycoXML/2003/07" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://webservices.myco.com/mycoXML/2003/07" elementFormDefault="qualified">When this schema is xjc'ed and then the associated java objects populated, then marshalled into an xml request, it prefixes "ns2" to all the elements within the XML, possibly because there are 2 namespaces specified.
    the web service however throws a "Could not find element" error, because it's not expecting the ns2 prefix.
    The questions are:
    1. could this ns2 be suppressed?
    2. does it make sense to suppress it?
    any other background/info about this and the right way to resolve it would be greatly appreciated.
    [edit]
    I may have a partial answer to my question - w3.org's primer told me that since the elementFormDefault is set to qualified, and attributeFormDefault is (by default) unqualified, it uses the ns2 to differentiate between the two.
    when i added attributeFormDefault="qualified", it prefixed everything with an ns1, which the web service seems to be quite happy with.
    if anyone has any other comments/insights, i'd appreciate it.
    Thanks,
    Nilesh
    Edited by: nthali on Apr 15, 2010 2:04 PM

    Just to add to Tims response
    If you do calc dim on account first and then aggregate sparse dimensions, then its best to Fix on Level 0 of all the Sparse dimensions for the calc dim and then aggregate the sparse. Otherwise when you run the calc the second time the calculation will calc dim on all levels of all sparse dimension combinations (there will be data there from the previous aggregation). This can be very very slow. So see below
    FIX("Local", "HSP_InputValue", "Actual",  "Final", "Jan", "FY15")
      FIX(@RELATIVE("Entity",0),@RELATIVE("Product",0), @RELATIVE("Channel",0),@RELATIVE("Project",0))
    CALC DIM ("Account");
    ENDFIX
    AGG ("Entity","Product", "Channel", "Project",);
    ENDFIX;

  • File Path Control question

    Simple question: How do I invoke the Open command in the File Path control? My reason is of my user hasn't supplied a file, then I want to force the user to select one.
    Solved!
    Go to Solution.

    Most file related vi should prompt if there is no file path. If for some reason you are not getting that you could check to see if the file path is empty and add a prompt see below:
    Tim
    Johnson Controls
    Holland Michigan

  • Transport namespace question

    Hello everyone,
    Small question. I have 2 development systems, I have to transport my things from the 1st development system to the 2nd and only then I can transport to the quality system. But someone else is doing work in the 2nd development system and created some namespaces in the same software component I am working on. So there are more namespaces in the 2nd system then in the 1st. My question is, when I transport the namespace definition for that software component from the 1st development system to the 2nd will those namespaces that do not exist in the 1st be deleted or will the transport only append my namespaces?
    Thanks

    Hi,
    According to my understanding,Unless the namespace in both the system look like the transports will not be affected.It will not delete any namespace, it will always append to the software component.
    Thanks,
    Uaruna

  • Massive mp3 file(path) move question

    Alright so I recently purchased a 2 terabyte network server for my home network. The purpose of this is to move all my music, movies, photos, etc. to the network drive in order to clear out all that space on my laptop's drive. At this point and time, I've only copied all my music to network drive. Figure the next step would be is to delete all my music off my local drive. But then got a little worried about iTunes. Now when I delete my music off my local drive, iTunes will be looking for the mp3s via the originated file path. Obviously the file is not going to be there. So when this happens in iTunes, the circularly enclosed exclamation point pops up and iTunes wants you to manually and find the file for it to play. So essentially my question is... Since I'm doing this on a large scale, Is there an easier way to get this done?
    Best solution I was able to come up with was to delete all the songs in iTunes and re-drag all the music back in there. BUT... the problem I have with that a good majority of the music's album artwork were manually put in by me (kind of uh...yeah about seeing the album artwork on the screen when I'm listening to my iPod). So I don't want lose all that it. Help! Kind of long, I know. Appreciate any help or suggestions.

    Thanks for responding Brian -
    The message I get is Error Code -2147467259
    Conn Execute.vi->InsertIntoFrom.vi<ERR>Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Microsoft Access Driver] Could not find file 'C:\Project\APDSS\DataBase\ExternalInterface.mdb'. in Conn Execute.vi->InsertIntoFrom.vi
    When my query looks like
    INSERT INTO InternalInterface SELECT Field1, Field2 FROM ExternalInterface.ExternalTable WHERE Id = '065649-101-750';

  • StAX namespace question

    Hello,
    Looking at this soap fault document:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:Fault>
      <faultcode>21</faultcode>
      <faultstring>Login error</faultstring>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>The 'faultcode' element has no prefix associated, but it belongs to ''http://schemas.xmlsoap.org/soap/envelope/" URI. When I'm positioned on 'faultcode' element, the XmlStreamReader.getNamespaceURI() call gets null, because there is no namespace directly associated to this element. The question is that I need all the namespaces associated to this element. The specification talks about a "namespace stack" -> NamespaceContext, but this is not useful for me because I'd need an iterator with all namespaces of this element (and with NamespaceContext you always need to pass a prefix or a URI as parameters to methods).
    Is there any way to achieve this, or should I program it?
    Thanks a lot,
    Joan

    Thank you for the message.
    I know the config.xml file is eventually passed to java.exe and the error is from there. Since namespace is just a token to distinguish one from another, I don't understand why the default namespace has to be kept and can not be changed.
    Can you please explain it more to me? If my webservice is under that namespace and you too have a webservice under the same namespace, what's going to happen if we 2 accidently give the same name to our webservices? Is there any conflict going on?
    Thanks

  • Zone path location question

    I am rebuilding our Zone hosting server and the Zone paths are currently located on the SAN through an iscsi mount. My question is: If I plan to use Live Upgrade should the zone paths be in the root partition instead?
    Also, if you have any suggestions about using Live upgrade with non-global zones I would like to hear them as well.
    Thanks,
    Dave

    Which file system you are using?
    I have patched several guest ldoms running several zones with Live Upgrade. Every zone's zroot is on separate zpool (because of HA). This way it is quite easy to migrate a single zone to second node (in the event of disaster)
    One thing that you should remember is that Live Upgrade with ZFS does the patching by using ZFS snapshot. For example, if you do the patching to a live system (which is supported with Live Upgrade!) and the application running on the zone is storing its data on the same file system where zone's root is, the application's data might be out of date after you reboot the machine using the new BE that was created by Live Upgrade.

  • Path selection question for an image of neurons

    I have a photo of neurons taken by a microscope as a TIFF.  I'd like to remove the black background color and any "cloudiness" that appears in the photo but still maintain the detail of the neurons and the connections.   Essentially, I'd like to change the color of the neuron related pieces to something other than red.  I'd also like to pick up most of the detail in the photo that relates to the neuron without taking along any of the black background (see second image attachment).  I also want to be able to set the neurons on a different color background that's solid and not murky.  I just upgraded my version of Photoshop from CS2 to CS5 and definitely noticed a difference in its ability to pick up the paths.  I don't know if I'm being too demanding of Photoshop or if I'm not getting the result I want because there's a better approach.  I would greatly appreciate any suggestions on how to go about doing this. 
    Thank you!
    Karen
    I tried selecting a path with the color selection tool (taking just the reds) and copying it on to a new layer but as you can see, some of the detail was lost and the edges are picking up some of the black background:

    I'd try an image processing forum. This forum is typically for Java-specific issues and there might not be that many people who've done this here. Sorry I couldn't help. Have you read some image processing books?

  • Namespace question with caringorm3

    Hi,guys.
    Studying with cairngorm3 demo, it does not work when I put  ' xmlns:cairngorm="http://ns.adobe.com/cairngorm"  '  in xxx.mxml,
    instead, something like ' xmlns:cairngorm="com.adobe.cairngorm.popup.*"  '  is OK.
    why? please,

    Namespace in the XI holds the design time objects of a particular interface that you develop, it;s like a folder name, when you create a namespace it provides you standrd template under it....
    it can be
    a)Equivalent to function group Name
    b) Equivalent to development class Nmae
    c) Equivalent to function module Name
    d) Equivalent to BAPI Name

  • XML Namespace Question

    Hi folks,
    I'm new to XML, and have been trying to validate an XML document against a schema using an online validator.
    I have given ultra-simple examples of my schema and document below:
    Schema
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com"
    xmlns="http://www.example.com">
         <xs:element name="letter">
                   <xs:complexType>
                        <xs:sequence>
                             <xs:element name="to" type="xs:string"/>
                             <xs:element name="from" type="xs:string"/>
                        </xs:sequence>
                   </xs:complexType>
         </xs:element>
    </xs:schema>
    Document
    <?xml version='1.0' ?>
    <letter xmlns="http://www.example.com">
              <to>You</to>
              <from>Me</from>
    </letter>When I try to validate the document against this schema I get the following errors:
    Validation error:
    Error at (3,4): The element 'http://www.example.com:letter' has invalid child element 'http://www.example.com:to'. Expected 'to'.
    Error at (3,4): The 'http://www.example.com:to' element is not declared. An error occurred at , (3, 4).<to>You</to>
    Error at (4,4): The 'http://www.example.com:from' element is not declared. An error occurred at , (4, 4).<from>Me</from> </letter>
    I must be doing something wrong when declaring namespaces, but I can't see what. Can anyone point me in the right direction, please?
    Thanks,
    s.

    This is what I have for your code:
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.NamedNodeMap;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    public class JAXPValidator
         public void validateXML(String XmlDocumentUrl) throws Exception
              System.setProperty( "javax.xml.parsers.DocumentBuilderFactory",
                                       "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setNamespaceAware(true);
              factory.setValidating(true);
              factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage",
                                        "http://www.w3.org/2001/XMLSchema");
              DocumentBuilder builder = factory.newDocumentBuilder();
              Validator handler = new Validator();
              builder.setErrorHandler(handler);
              Document doc = builder.parse(XmlDocumentUrl);
              if( handler.hasValidationError() )
                   throw( handler.getParseException() );
    // these simple loops assume that the xml has already been validated!
              NodeList letters = doc.getElementsByTagName( "letter" );
              for( int i = 0; i < letters.getLength(); i++ )
                   NodeList letterChildren = letters.item( i ).getChildNodes();
                   for( int j = 0; j < letterChildren.getLength(); j++ )
                        Node nextNode = letterChildren.item(j);
                        if( nextNode.getNodeType() == Node.ELEMENT_NODE )
                             Node nextNodeValue = nextNode.getFirstChild();
                             System.out.println( "nextNode.getLocalName() is " + nextNode.getLocalName() );
                             System.out.println( "nextNodeValue.getNodeValue() is " + nextNodeValue.getNodeValue() );
         private class Validator extends DefaultHandler
              private boolean validationError = false;
              private SAXParseException saxParseException = null;
              public boolean hasValidationError()
                   return( validationError );
              public Exception getParseException()
                   return( saxParseException );
              public void error(SAXParseException exception) throws SAXException
                   validationError = true;
                   saxParseException = exception;
              public void fatalError(SAXParseException exception) throws SAXException
                   validationError = true;
                   saxParseException = exception;
              public void warning(SAXParseException exception) throws SAXException
                   validationError = true;
                   saxParseException = exception;
         public static void main(String[] argv)
              JAXPValidator validator = new JAXPValidator();
              try
                   validator.validateXML(argv[0]);
              catch( Exception e )
                   e.printStackTrace( System.err );
    }This was compiled with:
    javac -classpath .;..\xerces-2_7_0\xercesImpl.jar;..\xerces-2_7_0\xml-apis.jar JAXPValidator.javaand run with
    java -classpath .;..\xerces-2_7_0\xercesImpl.jar;..\xerces-2_7_0\xml-apis.jar JAXPValidator sunforum.xmlIt assumes that the XML and XSD that I posted before are in the same directory as the program is being run from.

  • Database Toolkit Sub query Syntax and file path expectation question.

    I need some assistance from those of you smarter than I. 
    I have two database files (not two tables in the same database file) one represents information delivered from an external interface, and the other is used by the internal interface associated with the processing half of my application.  Data is received (i.e. fields are populated)  from the external interface to one database file and that data is then copied to another database file where the information will be processed by the internal interface. This is being done because I am worried about  file access issues that might occur if two different interfaces (external & internal) try to access the same file at the same time (without dealing with semaphores). I am not too worried about the sanctity of the data since each record supplied from the external interface should not effect any of the data being used by the internal interface.  So the first question is , am I being to primitive in my thinking assuming that I would run into file access issues if I were to just use two tables in the same database file for the same purpose ?
    My second question is related to my current implementation where I have two separate database files representing the external and internal interface data. Currently when a new set of data is entered into the External Interface Database file, an alert is issued, and another task copies the data from that file into Internal Interface Database, then the data is deleted from the External Interface Database file. My question is related to the syntax that I am using to provide the described functionality. I am currently using a INSERT with a subquery to the External Interface Database file i.e. INSERT INTO InternalDB FROM  ExternalDB.ExternalTable WHERE Order =  '06306049'; .
    My question is when I run this query with both database files in same directory I get an error stating that the ODBC driver can not find the ExternalDB.ExternalTable in the Parent Directory of the subdirectory where the files are actually located. The system DSN is set up correctly for the ExternalDB, and if I move it to the parent directory the query works correctly, my question is why would I have to put the two database files in seperate directories for this to work and is there a way to avoid this ?
    Thanks..
    Brad W

    Thanks for responding Brian -
    The message I get is Error Code -2147467259
    Conn Execute.vi->InsertIntoFrom.vi<ERR>Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Microsoft Access Driver] Could not find file 'C:\Project\APDSS\DataBase\ExternalInterface.mdb'. in Conn Execute.vi->InsertIntoFrom.vi
    When my query looks like
    INSERT INTO InternalInterface SELECT Field1, Field2 FROM ExternalInterface.ExternalTable WHERE Id = '065649-101-750';

  • Namespace question

    Dear SDN,
    A message mapping is raising the following error:
    RuntimeException in Message-Mapping transformatio~
    The reason is that the inbound payload has not namespace therefore mapping raises a not well formed inbound message error.  My guess!
    The inbound message is generated by an external system without explicit namespace:
    <root>
    </root>
    when manually editing the message and adding to it namespace, message process successfully:
    <ns0:root xmlns:ns0="...">
    </ns0:root>
    How can I omit this namespace check, o can I create a message type without namespace?

    I just found a way to solve it.
    Yes you're right, I am not using an external definition, I created a data type importing the xsd file, and then created a message type referencing such data type.
    How I solved it was quite simple. I just export the message type to an xsd archive, edited it to remove namespace definition, and then imported it as source structure into the message mapping.  Now the scenario works fine.
    Thanks a lot.

  • Namespaces question

    I have been converting some code I had over to the new ExtensibleEnvironment stuff and this has been going quite well. Everything I have done so far has been to configure stand-alone things like message listerners etc. What I cannot figure out is how to do something that needs to be triggered in response to an "event" (in particular creation of a cache).
    For example, suppose I want to configure custom indexes. I might do the following:
        <cache-mapping>
          <cache-name>dist-*</cache-name>
          <scheme-name>dist-default</scheme-name>
          <idx:indexes>
            <idx:index ordered="true">
              <idx:extractor>
                <instance:class classname="my.package.SomeExtractor"/>
              </idx:extractor>
              <idx:comparator>
                <instance:class classname="my.package.SomeComparator"/>
              </idx:comparator>
            </idx:index>
            <idx:index ordered="false">
              <idx:extractor>
                <instance:class classname="my.package.AnotherExtractor"/>
              </idx:extractor>
            </idx:index>
          </idx:indexes>
        </cache-mapping>At the moment the XML is processed as everything starts up but I only want to actually create the indexes when an instance of a cache is created (in the example above any cache with a named prefixed with "dist-".
    Is there anything in the new Incubator release to allow me to do what I want or will I need to come up with my own solution? Is this what the Events or Dependencies packages are for; if it is can I see some documentation or an example?
    Cheers,
    JK

    Jonathan,
    As part of processing your namespace you can register resources with the Environment that implement the DependentResource interface.
    Your registered resource will then be queried for its dependencies by calling the getDepedencyReferences method.
        public Set<DependencyReference> getDependencyReferences();When the dependencies are satisfied, the onDependenciesSatisfied method will be called by the Environment.
    This mechanism is mainly there to allow you to manage dependencies when starting and shutting down a system properly, and not to provide a callback while the system is running.
    One DependencyReference that might be useful for you is the NamedCacheReference which will be satisfied when the underlying cache service is started. You can find example uses of the DependentResource mechanism in the Processing Pattern.
    Unfortunately, there is no way of getting an event when a cache is created which was what you really were looking for.
    /Christer
    Edited by: Christer Fahlgren on Mar 4, 2010 2:10 PM

  • JAXB - Java to XML namespaces question

    I want the following XML to be produced:
    <service
    xmlns="http://www.example.org/service"
    xmlns:db="http://www.example.org/db"
    >
    <firstElement>
       <db:title>Testing</db:title>
    </firstElement>
    </service>However, this is proving to be impossible in JAXB. If I put any namespace within any annotation within my java bean I get unwanted prefixes everywhere. If I use the XmlSchema at the package level and specify prefixes with @XmlNs that doesn't even show up in the XML.
    I feel I am almost at a loss?

    Well, i got it to work in JAXB 1, w/o xfire, schema-to-java. Marshall and unmarshall.
    But w/ xfire, it doesn't appear to be possible. Would probably require implementing it for them myself...

  • Path Finding Question

    Im re-familiarizing myself with Java and have decided to crack at the Knights Tour puzzle. Now my code already finds one path (if possible) for every starting path, or returns nothing if it hits a dead end.
    However id like to expand it to find all paths, anyone offer any help with this? below is the code of the main and the board classes, the co-ord basically is returning an X/Y value
    package KnightsTour;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.List;
    public class KnightsTour
         public static void main (String args[])
              new KnightsTour();
         public KnightsTour()
              int boardWidth = 0, boardHeight = 0;
              System.out.println("Input Width :");
              boardWidth = getConsoleValue();
              System.out.println("Input Height :");
              boardHeight = getConsoleValue();
              long temp = System.currentTimeMillis();
              int totalPaths = getTotalPaths(boardWidth, boardHeight);
              System.out.println("\nSuccessful paths for board size :" + boardWidth + "x" + boardHeight + " is :" + totalPaths);
              System.out.println("\nTime taken to calculate was :" + (System.currentTimeMillis() - temp) + "ms");
         /* returns an Integer read from the console */
         private int getConsoleValue()
              int boardSize = 0;
              String line = null;
             try
               BufferedReader is = new BufferedReader(new InputStreamReader(System.in));
               line = is.readLine();
               boardSize = Integer.parseInt(line);
             catch (NumberFormatException ex)
               System.err.println("Not a valid number: " + line);
             catch (IOException e)
               System.err.println("Unexpected IO ERROR: " + e);
             return boardSize;
         /* returns value of number of Paths for a given board */
         public static int getTotalPaths(int width, int height)
              int totalPaths = 0;
              for(int w = 0; w < width; w++)
                   for(int h = 0; h < height; h++)
                        Coordinate startingPos = new Coordinate(w, h);
                        System.out.println("\nStarting at " + startingPos );
                        Board board = new Board(height, width, startingPos);
                        List<Coordinate> results = resolvePuzzle(board);
                        if (results != null)
                             for (Coordinate c : results)
                                  System.out.print(c + " ");
                             totalPaths++;
                        else
                             System.out.print("No Path Found");
              return totalPaths;
         /* a list of the moves made to resolve the puzzle */
         public static List<Coordinate> resolvePuzzle(Board currentBoard){
              if (currentBoard.isFinish())
                   return currentBoard.getCurrentPath();
              List<Coordinate> possibleMove = currentBoard.getPossibleMove();
              if (possibleMove.size() == 0)
                   return null;
              for (Coordinate c : possibleMove)
                   currentBoard.move(c);
                   List<Coordinate> results = resolvePuzzle(currentBoard);
                   if (results == null)
                        currentBoard.undo();
                   else
                        return results;
              return null;          
    } the board
    package KnightsTour;
    import java.util.ArrayList;
    import java.util.List;
    public class Board
              private boolean [][] visitedBoard;
              private Coordinate currentPos = null;
              private List<Coordinate> knightMoves = new ArrayList<Coordinate>();
              private List<Coordinate> currentPath = new ArrayList<Coordinate>();
              public Board(int boardHeight, int boardWidth, Coordinate start)
                   initKnight();
                   visitedBoard = new boolean [boardWidth][boardHeight];
                   move(start);
              /* a Knight has 8 different moves it can make, and this represents them all */
              public void initKnight()
                   knightMoves.add(new Coordinate (-1, -2));
                   knightMoves.add(new Coordinate (1, -2));
                   knightMoves.add(new Coordinate (2, -1));
                   knightMoves.add(new Coordinate (2, 1));
                   knightMoves.add(new Coordinate (1, 2));
                   knightMoves.add(new Coordinate (-1, 2));
                   knightMoves.add(new Coordinate (-2, 1));
                   knightMoves.add(new Coordinate (-2, -1));
              /* marks a square as visited and adds it the co-ord to the list */
              public void move (Coordinate newPos)
                   currentPos = newPos;
                   visitedBoard[newPos.getX()][newPos.getY()] = true;
                   currentPath.add(newPos);
              /* when a dead end if found, the path is reversed to see if an alternate path exists */
              public void undo ()
                   if(currentPath.size()-2 >= 0)
                        visitedBoard[currentPos.getX()][currentPos.getY()] = false;
                        Coordinate lastPos = currentPath.get(currentPath.size()-2);
                        currentPath.remove(currentPath.size() -1);
                        currentPos = lastPos;
              /* check the move list to see if a valid move is found */
              public List<Coordinate> getPossibleMove()
                   List<Coordinate> possibleMoves = new ArrayList<Coordinate>();
                   for (Coordinate c : knightMoves)
                        Coordinate futureMove = currentPos.getDelta(c);
                        if (!isCoordinateOutOfBound(futureMove) && !visitedBoard[futureMove.getX()][futureMove.getY()])
                             possibleMoves.add(futureMove);
                   return possibleMoves;
              public List<Coordinate> getCurrentPath(){ return currentPath;}
              private boolean isCoordinateOutOfBound(Coordinate coor)
                   return (coor.getX() < 0 || coor.getY() < 0 || coor.getX() >= visitedBoard.length || coor.getY() >= visitedBoard[0].length);
              /* has the Knight toured the board ? */
              boolean isFinish()
                   for (boolean[] range: visitedBoard)
                        for (boolean column : range)
                             if (! column)
                                  return false;
                   return true;
         }

    Dijkstra (and A*), doesn't in theory compute the shortest path between a source and a destination, but between a source and all the nodes. On those algorithms, once you've tested a node you know 1) it's distance to the source, 2) where the shortest path came from, so you cannot recompute a shortest path for a node.
    Here you should test the node that has the lowest "distance from src + heuristic", so probably one of the node adjacent to the violets.

Maybe you are looking for

  • Print to PC only Printer from Win Lap. through Mac w/airport extreme?

    I've got an airport extreme connected to a mac g4 via ethernet, i can't add the printer i have(a dell 1100) to the mac in the printer utility, does that mean there is no way to print to the printer wirelessly from my PC laptop. I've got the PC to see

  • After updating to IOS 6.1 my 3G no longer connects to anything,

    it says i still have 3G signal but it doesn't let me use anything. I've tried the various on/off senarios and they don't work either, anyone had this problem or know how to fix it?

  • Embeded Videos won't play.

    I can play videos on Youtube just fine, but if I play them anywhere that they are embedded they don't work (like Facebook and NHl.com). I'm using Firefox 13.0.1, When I was using Firefox 12 everything was ok. I've tried Disabling my add-ons, running

  • My catalog 1

    My PSE9 says that my current Catalog is My Catalog 1.  I'd like to back it up for safe keeping but can't find where it is stored?  I've done a full backup catalogue from the back up catalog command and specified where this should go....all the photos

  • Clean URL in Struts and Tiles

    Hi, I was trying to implement an application which will have Clean URL. e.g. http://something/user/john in Struts. I mapped ActionServlet to / (and not *.do). Following is my web.xml entries: <servlet-mapping>           <servlet-name>default</servlet