uk.ac.starlink.srb
Class SRBNode

java.lang.Object
  extended by uk.ac.starlink.srb.SRBNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
SRBBranch

public abstract class SRBNode
extends Object
implements Node

Remote file node based on a JARGON GeneralFile.

Since:
7 Mar 2005
Author:
Mark Taylor

Constructor Summary
SRBNode(edu.sdsc.grid.io.srb.SRBFile srbFile, edu.sdsc.grid.io.srb.SRBFile srbRoot)
          Constructor.
 
Method Summary
 boolean equals(Object other)
           
 edu.sdsc.grid.io.srb.SRBFile getFile()
           
 String getName()
          Returns the name of this node.
 Branch getParent()
          Returns the parent branch of this node.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SRBNode

public SRBNode(edu.sdsc.grid.io.srb.SRBFile srbFile,
               edu.sdsc.grid.io.srb.SRBFile srbRoot)
Constructor.

Parameters:
srbFile - the SRB file object this node is based on
srbRoot - the root of the filesystem in which this file lives
Method Detail

getName

public String getName()
Description copied from interface: Node
Returns the name of this node. This should not be an entire pathname, that is, it should not include the name of its parent.

Specified by:
getName in interface Node
Returns:
name

getParent

public Branch getParent()
Description copied from interface: Node
Returns the parent branch of this node. If this node is at the root of its tree, it will return null.

Specified by:
getParent in interface Node
Returns:
parent

getFile

public edu.sdsc.grid.io.srb.SRBFile getFile()

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.