public pathNode(pathNode nextPathX, pathNode prevPathX, String pathNameX) { nextPath = nextPathX; prevPath = prevPathX; pathName = pathNameX; medScanner = null; }
public pathNode() { nextPath = null; prevPath = null; pathName = null; medScanner = null; }
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)); } }
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); }
public void setPrevPath(pathNode prevPathX) { prevPath = prevPathX; }
public void setNextPath(pathNode nextPathX) { nextPath = nextPathX; }
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; }