|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore_lib.Transaction
public class Transaction
The Transaction class stores the parameters that characterize a transaction between two users. Only access methods are provided.
Field Summary | |
---|---|
private int |
commit_cycle
Cycle when this Transaction will complete and data can be committed. |
private int |
file_num
Numerical identifier for the file being exchanged. |
private int |
receiver
Numerical identifier for the file receiver. |
private int |
sender
Numerical identifier for the file provider. |
private boolean |
valid
Validity of the file being exchanged. |
Constructor Summary | |
---|---|
Transaction(int commit_cycle,
int sender,
int receiver,
int file_num,
boolean valid)
Construct a Transaction object by providing all fields. |
Method Summary | |
---|---|
int |
getCommit()
Get the commit cycle of this Transaction. |
int |
getFile()
Get the identifier of the file being exchanged |
int |
getRecv()
Get the identifier of the file receiver |
int |
getSend()
Get the identifier of the file provider |
boolean |
getValid()
Get the validity of the file being exchanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int commit_cycle
private int sender
private int receiver
private int file_num
private boolean valid
Constructor Detail |
---|
public Transaction(int commit_cycle, int sender, int receiver, int file_num, boolean valid)
commit_cycle
- Cycle when this transaction can commitsender
- File providerreceiver
- File receiverfile_num
- File being exchangedvalid
- Validity of file being exchangedMethod Detail |
---|
public int getCommit()
public int getSend()
public int getRecv()
public int getFile()
public boolean getValid()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |