Beispiel #1
0
 public pathNode(pathNode nextPathX, pathNode prevPathX, String pathNameX)
 {
     nextPath   = nextPathX;
     prevPath   = prevPathX;
     pathName   = pathNameX;
     medScanner = null;
 }
Beispiel #2
0
 public pathNode()
 {
     nextPath   = null;
     prevPath   = null;
     pathName   = null;
     medScanner = null;
 }
Beispiel #3
0
        public void addPath(String pathName)
        {
            if (firstPath == null)
            {
                firstPath = new pathNode(null, null, pathName);
            }

            else
            {
                pathScanner = firstPath;
                while (pathScanner.getNextPath() != null)
                {
                    pathScanner = pathScanner.getNextPath();
                }
                pathScanner.setNextPath(new pathNode(null, pathScanner, pathName));
            }
        }
Beispiel #4
0
        public pathNode getPath(String pathName)
        {
            pathNode returnValue = null;

            if (firstPath != null)
            {
                pathScanner = firstPath;
                while (pathScanner != null)
                {
                    if (pathScanner.getPathName().Equals(pathName))
                    {
                        returnValue = pathScanner;
                    }
                    pathScanner = pathScanner.getNextPath();
                }
            }

            return(returnValue);
        }
Beispiel #5
0
 public void setPrevPath(pathNode prevPathX)
 {
     prevPath = prevPathX;
 }
Beispiel #6
0
 public void setNextPath(pathNode nextPathX)
 {
     nextPath = nextPathX;
 }
Beispiel #7
0
        private pathNode firstPath;         //referance the the first path, bacially the place where the path scanner will reset to

        #region constuctors
        //#region and endRegion are used to creat areas of code that can be folded for netness
        public timerArray()         //defult constructor
        {
            pathScanner = null;
            firstPath   = null;
        }