core_lib
Class FileCopy

java.lang.Object
  extended by core_lib.FileCopy

public class FileCopy
extends java.lang.Object

The FileCopy class stores a unique instance of a file. A single 'file' does not exist on a network - instead there are multiple FileCopy objects for each 'file' - each with a distinct owner and validity.


Field Summary
private  int owner
          The owner of this FileCopy.
private  boolean valid
          The validity of this FileCopy.
 
Constructor Summary
FileCopy(int owner, boolean valid)
          Construct a FileCopy object.
 
Method Summary
 int getOwner()
          Access method to the 'owner' field.
 boolean getValid()
          Access method to the 'valid' field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

private int owner
The owner of this FileCopy.


valid

private boolean valid
The validity of this FileCopy.

Constructor Detail

FileCopy

public FileCopy(int owner,
                boolean valid)
Construct a FileCopy object.

Parameters:
owner - The user (number) who owns this FileCopy
valid - The validity of this FileCopy
Method Detail

getOwner

public int getOwner()
Access method to the 'owner' field.

Returns:
The user who owns this FileCopy

getValid

public boolean getValid()
Access method to the 'valid' field.

Returns:
The validity of the this FileCopy