예제 #1
0
 public pathNode(pathNode nextPathX, pathNode prevPathX, String pathNameX)
 {
     nextPath   = nextPathX;
     prevPath   = prevPathX;
     pathName   = pathNameX;
     medScanner = null;
 }
예제 #2
0
 public pathNode()
 {
     nextPath   = null;
     prevPath   = null;
     pathName   = null;
     medScanner = null;
 }
예제 #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));
            }
        }
예제 #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);
        }
예제 #5
0
 public void setPrevPath(pathNode prevPathX)
 {
     prevPath = prevPathX;
 }
예제 #6
0
 public void setNextPath(pathNode nextPathX)
 {
     nextPath = nextPathX;
 }
예제 #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;
        }