vault backup: 2024-02-09 10:58:22
This commit is contained in:
@@ -64,3 +64,68 @@ T1 and T2 conflict as T1's write for X is overwritten by T2's write for X before
|
|||||||
( 2 conflicts )
|
( 2 conflicts )
|
||||||
T1 and T2 conflict as T1's write operation is overwritten by T2's write operation before either transaction is complete.
|
T1 and T2 conflict as T1's write operation is overwritten by T2's write operation before either transaction is complete.
|
||||||
( 3 conflicts )
|
( 3 conflicts )
|
||||||
|
|
||||||
|
# Workshop
|
||||||
|
|
||||||
|
```sql
|
||||||
|
create table chap27.car(
|
||||||
|
carId INT,
|
||||||
|
carMake VARCHAR(8),
|
||||||
|
carModel VARCHAR(12),
|
||||||
|
carPrice INT,
|
||||||
|
primary key( carId )
|
||||||
|
);
|
||||||
|
|
||||||
|
create table chap27.part(
|
||||||
|
partId INT,
|
||||||
|
partName VARCHAR(6),
|
||||||
|
partPrice INT,
|
||||||
|
primary key( partId )
|
||||||
|
);
|
||||||
|
|
||||||
|
create table chap27.carPart(
|
||||||
|
carId INT,
|
||||||
|
partId INT,
|
||||||
|
foreign key (carId) references car(carId),
|
||||||
|
foreign key (partId) references part(partId)
|
||||||
|
);
|
||||||
|
|
||||||
|
insert into car values
|
||||||
|
(1, 'Ford', 'Focus', 18000),
|
||||||
|
(2, 'Toyota', 'Avensis', 20000),
|
||||||
|
(3, 'BMW', '640d', 60000),
|
||||||
|
(4, 'Porsche', 'Boxter 718', 42000);
|
||||||
|
|
||||||
|
insert into part values
|
||||||
|
(1, 'part1', 54),
|
||||||
|
(2, 'part2', 664),
|
||||||
|
(3, 'part3', 224),
|
||||||
|
(4, 'part4', 11),
|
||||||
|
(5, 'part5', 187),
|
||||||
|
(6, 'part6', 22),
|
||||||
|
(7, 'part7', 998),
|
||||||
|
(8, 'part8', 115),
|
||||||
|
(9, 'part9', 23),
|
||||||
|
(10, 'part10', 55);
|
||||||
|
|
||||||
|
insert into carpart values
|
||||||
|
(1, 3),
|
||||||
|
(1, 8),
|
||||||
|
(1, 5),
|
||||||
|
(1, 1),
|
||||||
|
(1, 7),
|
||||||
|
(2, 3),
|
||||||
|
(2, 4),
|
||||||
|
(2, 2),
|
||||||
|
(2, 8),
|
||||||
|
(3, 9),
|
||||||
|
(3, 5),
|
||||||
|
(3, 3),
|
||||||
|
(3, 1),
|
||||||
|
(4, 7),
|
||||||
|
(4, 9),
|
||||||
|
(4, 5),
|
||||||
|
(4, 6),
|
||||||
|
(4, 4),
|
||||||
|
(4, 2);
|
||||||
|
```
|
||||||
|
Binary file not shown.
@@ -8,10 +8,8 @@
|
|||||||
|
|
||||||
// Import all required libraries. Not using .* as it is not good practice due to potential conflicts.
|
// Import all required libraries. Not using .* as it is not good practice due to potential conflicts.
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.PrintWriter;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.awt.FileDialog;
|
import java.awt.FileDialog;
|
||||||
import java.awt.Frame;
|
import java.awt.Frame;
|
||||||
@@ -49,32 +47,32 @@ public class Library
|
|||||||
|
|
||||||
public void readItemData() //throws IOException
|
public void readItemData() //throws IOException
|
||||||
{
|
{
|
||||||
try {
|
|
||||||
Frame frame = null; // Initialise a null frame
|
Frame frame = null; // Initialise a null frame
|
||||||
FileDialog fileBox = new FileDialog( frame, "Open", FileDialog.LOAD ); // Initialise filebox with the null frame pointer
|
FileDialog fileBox = new FileDialog( frame, "Open", FileDialog.LOAD ); // Initialise filebox with the null frame pointer
|
||||||
fileBox.setVisible( true ); // Open a file selection dialog to the user.
|
fileBox.setVisible( true ); // Open a file selection dialog to the user.
|
||||||
|
|
||||||
Scanner fileScanner = new Scanner( new File( fileBox.getDirectory() + fileBox.getFile() ) );
|
try {
|
||||||
|
Scanner fileScanner = new Scanner( new File( fileBox.getDirectory() + fileBox.getFile() ) );
|
||||||
while( fileScanner.hasNextLine() )
|
|
||||||
{
|
|
||||||
|
|
||||||
String lineItem = fileScanner.nextLine();
|
while( fileScanner.hasNextLine() )
|
||||||
|
{
|
||||||
if ( !lineItem.contains( "//" ) && !lineItem.trim().isEmpty() ) { // Ensure no comments or empty lines are included
|
|
||||||
|
|
||||||
Scanner detailScanner = new Scanner ( lineItem ).useDelimiter(","); // Create a new scanner to grab the values in a comma separated list
|
String lineItem = fileScanner.nextLine();
|
||||||
|
|
||||||
LibraryItem libraryItem = new LibraryItem();
|
|
||||||
libraryItem.readData( detailScanner );
|
|
||||||
|
|
||||||
storeItem( libraryItem ); // Store the new LibraryItem in the itemList
|
|
||||||
|
|
||||||
|
if ( !lineItem.contains( "//" ) && !lineItem.trim().isEmpty() ) { // Ensure no comments or empty lines are included
|
||||||
|
|
||||||
|
Scanner detailScanner = new Scanner ( lineItem ).useDelimiter(","); // Create a new scanner to grab the values in a comma separated list
|
||||||
|
|
||||||
|
LibraryItem libraryItem = new LibraryItem();
|
||||||
|
libraryItem.readData( detailScanner );
|
||||||
|
|
||||||
|
storeItem( libraryItem ); // Store the new LibraryItem in the itemList
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
catch( IOException e ) { // Catch any IO Exceptions that may occur from improper file selection.
|
||||||
catch( IOException e ) { // Catch any IO Exceptions that may occur from improper file selection.
|
System.err.println( "Caught IOException: " + e.getMessage() + "\nAn I/O Exception has occurred, please check file is readable and correct format." );
|
||||||
System.err.println( "Caught IOException: " + e.getMessage() + "\nAn I/O Exception has occurred, please check file is readable and correct format." );
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
|
||||||
public class LibraryItem
|
public class LibraryItem
|
||||||
{
|
{
|
||||||
@@ -116,10 +117,13 @@ public class LibraryItem
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void readData( Scanner detailScanner ) {
|
public void readData( Scanner detailScanner ) {
|
||||||
this.title = detailScanner.next();
|
|
||||||
this.itemCode = detailScanner.next();
|
if ( detailScanner != null ) {
|
||||||
this.cost = Integer.parseInt( detailScanner.next() );
|
this.title = detailScanner.next().trim();
|
||||||
this.timesBorrowed = Integer.parseInt( detailScanner.next() );
|
this.itemCode = detailScanner.next().trim();
|
||||||
this.onLoan = Boolean.parseBoolean( detailScanner.next() );
|
this.cost = Integer.parseInt( detailScanner.next() );
|
||||||
|
this.timesBorrowed = Integer.parseInt( detailScanner.next() );
|
||||||
|
this.onLoan = Boolean.parseBoolean( detailScanner.next() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
369
Semester 2/Programming 2/Project/Part 1/doc/LibraryItem.html
Normal file
369
Semester 2/Programming 2/Project/Part 1/doc/LibraryItem.html
Normal file
@@ -0,0 +1,369 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!--NewPage-->
|
||||||
|
<HTML>
|
||||||
|
<HEAD>
|
||||||
|
<!-- Generated by javadoc (build 1.8.0_392) on Thu Feb 08 14:09:32 GMT 2024 -->
|
||||||
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<TITLE>
|
||||||
|
LibraryItem
|
||||||
|
</TITLE>
|
||||||
|
|
||||||
|
<META NAME="date" CONTENT="2024-02-08">
|
||||||
|
|
||||||
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
|
||||||
|
|
||||||
|
<SCRIPT type="text/javascript">
|
||||||
|
function windowTitle()
|
||||||
|
{
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="LibraryItem";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</SCRIPT>
|
||||||
|
<NOSCRIPT>
|
||||||
|
</NOSCRIPT>
|
||||||
|
|
||||||
|
</HEAD>
|
||||||
|
|
||||||
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<HR>
|
||||||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||||||
|
<H2>
|
||||||
|
Class LibraryItem</H2>
|
||||||
|
<PRE>
|
||||||
|
java.lang.Object
|
||||||
|
<IMG SRC="./resources/inherit.gif" ALT="extended by "><B>LibraryItem</B>
|
||||||
|
</PRE>
|
||||||
|
<HR>
|
||||||
|
<DL>
|
||||||
|
<DT><PRE>public class <B>LibraryItem</B><DT>extends java.lang.Object</DL>
|
||||||
|
</PRE>
|
||||||
|
|
||||||
|
<P>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<P>
|
||||||
|
|
||||||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||||
|
|
||||||
|
<A NAME="constructor_summary"><!-- --></A>
|
||||||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||||
|
<B>Constructor Summary</B></FONT></TH>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#LibraryItem()">LibraryItem</A></B>()</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#LibraryItem(java.lang.String, java.lang.String, int, int, boolean)">LibraryItem</A></B>(java.lang.String title,
|
||||||
|
java.lang.String itemCode,
|
||||||
|
int cost,
|
||||||
|
int timesBorrowed,
|
||||||
|
boolean onLoan)</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
Constructor for objects of class LibraryItem</TD>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
|
||||||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||||||
|
|
||||||
|
<A NAME="method_summary"><!-- --></A>
|
||||||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||||
|
<B>Method Summary</B></FONT></TH>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> int</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#getCost()">getCost</A></B>()</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> java.lang.String</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#getItemCode()">getItemCode</A></B>()</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> boolean</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#getOnLoan()">getOnLoan</A></B>()</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> int</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#getTimesBorrowed()">getTimesBorrowed</A></B>()</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> java.lang.String</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#getTitle()">getTitle</A></B>()</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> void</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#printDetails()">printDetails</A></B>()</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> void</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#readData(java.util.Scanner)">readData</A></B>(java.util.Scanner detailScanner)</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> void</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#setCost(int)">setCost</A></B>(int cost)</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> void</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#setItemCode(java.lang.String)">setItemCode</A></B>(java.lang.String itemCode)</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> void</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#setOnLoan(boolean)">setOnLoan</A></B>(boolean onLoan)</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> void</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#setTimesBorrowed(int)">setTimesBorrowed</A></B>(int timesBorrowed)</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||||
|
<CODE> void</CODE></FONT></TD>
|
||||||
|
<TD><CODE><B><A HREF="LibraryItem.html#setTitle(java.lang.String)">setTitle</A></B>(java.lang.String title)</CODE>
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
||||||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||||||
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
|
||||||
|
<P>
|
||||||
|
|
||||||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||||
|
|
||||||
|
<A NAME="constructor_detail"><!-- --></A>
|
||||||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||||||
|
<B>Constructor Detail</B></FONT></TH>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
|
||||||
|
<A NAME="LibraryItem()"><!-- --></A><H3>
|
||||||
|
LibraryItem</H3>
|
||||||
|
<PRE>
|
||||||
|
public <B>LibraryItem</B>()</PRE>
|
||||||
|
<DL>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="LibraryItem(java.lang.String, java.lang.String, int, int, boolean)"><!-- --></A><H3>
|
||||||
|
LibraryItem</H3>
|
||||||
|
<PRE>
|
||||||
|
public <B>LibraryItem</B>(java.lang.String title,
|
||||||
|
java.lang.String itemCode,
|
||||||
|
int cost,
|
||||||
|
int timesBorrowed,
|
||||||
|
boolean onLoan)</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD>Constructor for objects of class LibraryItem
|
||||||
|
<P>
|
||||||
|
</DL>
|
||||||
|
|
||||||
|
<!-- ============ METHOD DETAIL ========== -->
|
||||||
|
|
||||||
|
<A NAME="method_detail"><!-- --></A>
|
||||||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||||||
|
<B>Method Detail</B></FONT></TH>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
|
||||||
|
<A NAME="getCost()"><!-- --></A><H3>
|
||||||
|
getCost</H3>
|
||||||
|
<PRE>
|
||||||
|
public int <B>getCost</B>()</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="getItemCode()"><!-- --></A><H3>
|
||||||
|
getItemCode</H3>
|
||||||
|
<PRE>
|
||||||
|
public java.lang.String <B>getItemCode</B>()</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="getOnLoan()"><!-- --></A><H3>
|
||||||
|
getOnLoan</H3>
|
||||||
|
<PRE>
|
||||||
|
public boolean <B>getOnLoan</B>()</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="getTimesBorrowed()"><!-- --></A><H3>
|
||||||
|
getTimesBorrowed</H3>
|
||||||
|
<PRE>
|
||||||
|
public int <B>getTimesBorrowed</B>()</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="getTitle()"><!-- --></A><H3>
|
||||||
|
getTitle</H3>
|
||||||
|
<PRE>
|
||||||
|
public java.lang.String <B>getTitle</B>()</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="printDetails()"><!-- --></A><H3>
|
||||||
|
printDetails</H3>
|
||||||
|
<PRE>
|
||||||
|
public void <B>printDetails</B>()</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="readData(java.util.Scanner)"><!-- --></A><H3>
|
||||||
|
readData</H3>
|
||||||
|
<PRE>
|
||||||
|
public void <B>readData</B>(java.util.Scanner detailScanner)</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="setCost(int)"><!-- --></A><H3>
|
||||||
|
setCost</H3>
|
||||||
|
<PRE>
|
||||||
|
public void <B>setCost</B>(int cost)</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="setItemCode(java.lang.String)"><!-- --></A><H3>
|
||||||
|
setItemCode</H3>
|
||||||
|
<PRE>
|
||||||
|
public void <B>setItemCode</B>(java.lang.String itemCode)</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="setOnLoan(boolean)"><!-- --></A><H3>
|
||||||
|
setOnLoan</H3>
|
||||||
|
<PRE>
|
||||||
|
public void <B>setOnLoan</B>(boolean onLoan)</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="setTimesBorrowed(int)"><!-- --></A><H3>
|
||||||
|
setTimesBorrowed</H3>
|
||||||
|
<PRE>
|
||||||
|
public void <B>setTimesBorrowed</B>(int timesBorrowed)</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<A NAME="setTitle(java.lang.String)"><!-- --></A><H3>
|
||||||
|
setTitle</H3>
|
||||||
|
<PRE>
|
||||||
|
public void <B>setTitle</B>(java.lang.String title)</PRE>
|
||||||
|
<DL>
|
||||||
|
<DD><DL>
|
||||||
|
</DL>
|
||||||
|
</DD>
|
||||||
|
</DL>
|
||||||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
@@ -0,0 +1,32 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!--NewPage-->
|
||||||
|
<HTML>
|
||||||
|
<HEAD>
|
||||||
|
<!-- Generated by javadoc (build 1.8.0_392) on Thu Feb 08 14:09:32 GMT 2024 -->
|
||||||
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<TITLE>
|
||||||
|
All Classes
|
||||||
|
</TITLE>
|
||||||
|
|
||||||
|
<META NAME="date" CONTENT="2024-02-08">
|
||||||
|
|
||||||
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
|
||||||
|
|
||||||
|
|
||||||
|
</HEAD>
|
||||||
|
|
||||||
|
<BODY BGCOLOR="white">
|
||||||
|
<FONT size="+1" CLASS="FrameHeadingFont">
|
||||||
|
<B>All Classes</B></FONT>
|
||||||
|
<BR>
|
||||||
|
|
||||||
|
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
|
||||||
|
<TR>
|
||||||
|
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="LibraryItem.html" title="class in <Unnamed>" target="classFrame">LibraryItem</A>
|
||||||
|
<BR>
|
||||||
|
</FONT></TD>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
@@ -0,0 +1,32 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!--NewPage-->
|
||||||
|
<HTML>
|
||||||
|
<HEAD>
|
||||||
|
<!-- Generated by javadoc (build 1.8.0_392) on Thu Feb 08 14:09:32 GMT 2024 -->
|
||||||
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<TITLE>
|
||||||
|
All Classes
|
||||||
|
</TITLE>
|
||||||
|
|
||||||
|
<META NAME="date" CONTENT="2024-02-08">
|
||||||
|
|
||||||
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
|
||||||
|
|
||||||
|
|
||||||
|
</HEAD>
|
||||||
|
|
||||||
|
<BODY BGCOLOR="white">
|
||||||
|
<FONT size="+1" CLASS="FrameHeadingFont">
|
||||||
|
<B>All Classes</B></FONT>
|
||||||
|
<BR>
|
||||||
|
|
||||||
|
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
|
||||||
|
<TR>
|
||||||
|
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="LibraryItem.html" title="class in <Unnamed>">LibraryItem</A>
|
||||||
|
<BR>
|
||||||
|
</FONT></TD>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
@@ -0,0 +1,45 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!--NewPage-->
|
||||||
|
<HTML>
|
||||||
|
<HEAD>
|
||||||
|
<!-- Generated by javadoc (build 1.8.0_392) on Thu Feb 08 14:09:32 GMT 2024 -->
|
||||||
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<TITLE>
|
||||||
|
Constant Field Values
|
||||||
|
</TITLE>
|
||||||
|
|
||||||
|
<META NAME="date" CONTENT="2024-02-08">
|
||||||
|
|
||||||
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
|
||||||
|
|
||||||
|
<SCRIPT type="text/javascript">
|
||||||
|
function windowTitle()
|
||||||
|
{
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="Constant Field Values";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</SCRIPT>
|
||||||
|
<NOSCRIPT>
|
||||||
|
</NOSCRIPT>
|
||||||
|
|
||||||
|
</HEAD>
|
||||||
|
|
||||||
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<HR>
|
||||||
|
<CENTER>
|
||||||
|
<H1>
|
||||||
|
Constant Field Values</H1>
|
||||||
|
</CENTER>
|
||||||
|
<HR SIZE="4" NOSHADE>
|
||||||
|
<B>Contents</B><UL>
|
||||||
|
</UL>
|
||||||
|
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
37
Semester 2/Programming 2/Project/Part 1/doc/index.html
Normal file
37
Semester 2/Programming 2/Project/Part 1/doc/index.html
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
||||||
|
<!--NewPage-->
|
||||||
|
<HTML>
|
||||||
|
<HEAD>
|
||||||
|
<!-- Generated by javadoc on Thu Feb 08 14:09:32 GMT 2024-->
|
||||||
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<TITLE>
|
||||||
|
Generated Documentation (Untitled)
|
||||||
|
</TITLE>
|
||||||
|
<SCRIPT type="text/javascript">
|
||||||
|
targetPage = "" + window.location.search;
|
||||||
|
if (targetPage != "" && targetPage != "undefined")
|
||||||
|
targetPage = targetPage.substring(1);
|
||||||
|
if (targetPage.indexOf(":") != -1)
|
||||||
|
targetPage = "undefined";
|
||||||
|
function loadFrames() {
|
||||||
|
if (targetPage != "" && targetPage != "undefined")
|
||||||
|
top.classFrame.location = top.targetPage;
|
||||||
|
}
|
||||||
|
</SCRIPT>
|
||||||
|
<NOSCRIPT>
|
||||||
|
</NOSCRIPT>
|
||||||
|
</HEAD>
|
||||||
|
<FRAMESET cols="20%,80%" title="" onLoad="top.loadFrames()">
|
||||||
|
<FRAME src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)">
|
||||||
|
<FRAME src="LibraryItem.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes">
|
||||||
|
<NOFRAMES>
|
||||||
|
<H2>
|
||||||
|
Frame Alert</H2>
|
||||||
|
|
||||||
|
<P>
|
||||||
|
This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
|
||||||
|
<BR>
|
||||||
|
Link to<A HREF="LibraryItem.html">Non-frame version.</A>
|
||||||
|
</NOFRAMES>
|
||||||
|
</FRAMESET>
|
||||||
|
</HTML>
|
41
Semester 2/Programming 2/Project/Part 1/doc/logfile.txt
Normal file
41
Semester 2/Programming 2/Project/Part 1/doc/logfile.txt
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
Class documentation
|
||||||
|
<---- javadoc command: ---->
|
||||||
|
/usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc
|
||||||
|
-author
|
||||||
|
-version
|
||||||
|
-nodeprecated
|
||||||
|
-package
|
||||||
|
-noindex
|
||||||
|
-notree
|
||||||
|
-nohelp
|
||||||
|
-nonavbar
|
||||||
|
-source
|
||||||
|
1.8
|
||||||
|
-classpath
|
||||||
|
/usr/share/bluej/bluejcore.jar:/usr/share/bluej/junit-4.8.2.jar:/usr/share/bluej/userlib/pi4j-gpio-extension.jar:/usr/share/bluej/userlib/pi4j-device.jar:/usr/share/bluej/userlib/pi4j-core.jar:/usr/share/bluej/userlib/pi4j-service.jar:/home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1
|
||||||
|
-d
|
||||||
|
/home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1/doc
|
||||||
|
-encoding
|
||||||
|
UTF-8
|
||||||
|
-charset
|
||||||
|
UTF-8
|
||||||
|
-docletpath
|
||||||
|
/usr/share/bluej/bjdoclet.jar
|
||||||
|
-doclet
|
||||||
|
bluej.doclet.doclets.formats.html.HtmlDoclet
|
||||||
|
/home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1/LibraryItem.java
|
||||||
|
<---- end of javadoc command ---->
|
||||||
|
Loading source file /home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1/LibraryItem.java...
|
||||||
|
Constructing Javadoc information...
|
||||||
|
Standard Doclet version 1.8.0_392
|
||||||
|
Building tree for all the packages and classes...
|
||||||
|
Generating /home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1/doc/LibraryItem.html...
|
||||||
|
Generating /home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1/doc/package-frame.html...
|
||||||
|
Generating /home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1/doc/package-summary.html...
|
||||||
|
Generating /home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1/doc/constant-values.html...
|
||||||
|
Building index for all the packages and classes...
|
||||||
|
Building index for all classes...
|
||||||
|
Generating /home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1/doc/allclasses-frame.html...
|
||||||
|
Generating /home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1/doc/allclasses-noframe.html...
|
||||||
|
Generating /home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1/doc/index.html...
|
||||||
|
Generating /home/boris/OneDrive/Computer Science Year 1/Semester 2/Programming 2/Project/Part 1/doc/stylesheet.css...
|
@@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!--NewPage-->
|
||||||
|
<HTML>
|
||||||
|
<HEAD>
|
||||||
|
<!-- Generated by javadoc (build 1.8.0_392) on Thu Feb 08 14:09:32 GMT 2024 -->
|
||||||
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<TITLE>
|
||||||
|
<Unnamed>
|
||||||
|
</TITLE>
|
||||||
|
|
||||||
|
<META NAME="date" CONTENT="2024-02-08">
|
||||||
|
|
||||||
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
|
||||||
|
|
||||||
|
|
||||||
|
</HEAD>
|
||||||
|
|
||||||
|
<BODY BGCOLOR="white">
|
||||||
|
<FONT size="+1" CLASS="FrameTitleFont">
|
||||||
|
<A HREF="package-summary.html" target="classFrame"><Unnamed></A></FONT>
|
||||||
|
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
|
||||||
|
<TR>
|
||||||
|
<TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont">
|
||||||
|
Classes</FONT>
|
||||||
|
<FONT CLASS="FrameItemFont">
|
||||||
|
<BR>
|
||||||
|
<A HREF="LibraryItem.html" title="class in <Unnamed>" target="classFrame">LibraryItem</A></FONT></TD>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
|
||||||
|
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
1
Semester 2/Programming 2/Project/Part 1/doc/package-list
Normal file
1
Semester 2/Programming 2/Project/Part 1/doc/package-list
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
@@ -0,0 +1,46 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!--NewPage-->
|
||||||
|
<HTML>
|
||||||
|
<HEAD>
|
||||||
|
<!-- Generated by javadoc (build 1.8.0_392) on Thu Feb 08 14:09:32 GMT 2024 -->
|
||||||
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<TITLE>
|
||||||
|
|
||||||
|
</TITLE>
|
||||||
|
|
||||||
|
<META NAME="date" CONTENT="2024-02-08">
|
||||||
|
|
||||||
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
|
||||||
|
|
||||||
|
|
||||||
|
</HEAD>
|
||||||
|
|
||||||
|
<BODY BGCOLOR="white">
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<HR>
|
||||||
|
<H2>
|
||||||
|
Package <Unnamed>
|
||||||
|
</H2>
|
||||||
|
|
||||||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||||||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||||
|
<B>Class Summary</B></FONT></TH>
|
||||||
|
</TR>
|
||||||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||||
|
<TD WIDTH="15%"><B><A HREF="LibraryItem.html" title="class in <Unnamed>">LibraryItem</A></B></TD>
|
||||||
|
<TD> </TD>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
|
||||||
|
|
||||||
|
<P>
|
||||||
|
<DL>
|
||||||
|
</DL>
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
<HR>
|
||||||
|
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
Binary file not shown.
After Width: | Height: | Size: 57 B |
29
Semester 2/Programming 2/Project/Part 1/doc/stylesheet.css
Normal file
29
Semester 2/Programming 2/Project/Part 1/doc/stylesheet.css
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/* Javadoc style sheet */
|
||||||
|
|
||||||
|
/* Define colors, fonts and other style attributes here to override the defaults */
|
||||||
|
|
||||||
|
/* Page background color */
|
||||||
|
body { background-color: #FFFFFF; color:#000000 }
|
||||||
|
|
||||||
|
/* Headings */
|
||||||
|
h1 { font-size: 145% }
|
||||||
|
|
||||||
|
/* Table colors */
|
||||||
|
.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */
|
||||||
|
.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */
|
||||||
|
.TableRowColor { background: #FFFFFF; color:#000000 } /* White */
|
||||||
|
|
||||||
|
/* Font used in left-hand frame lists */
|
||||||
|
.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
|
||||||
|
.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
|
||||||
|
.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
|
||||||
|
|
||||||
|
/* Navigation bar fonts and colors */
|
||||||
|
.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */
|
||||||
|
.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */
|
||||||
|
.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;}
|
||||||
|
.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;}
|
||||||
|
|
||||||
|
.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000}
|
||||||
|
.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000}
|
||||||
|
|
@@ -14,7 +14,7 @@ package.showExtends=true
|
|||||||
package.showUses=true
|
package.showUses=true
|
||||||
project.charset=UTF-8
|
project.charset=UTF-8
|
||||||
target1.editor.height=1049
|
target1.editor.height=1049
|
||||||
target1.editor.width=960
|
target1.editor.width=1591
|
||||||
target1.editor.x=0
|
target1.editor.x=0
|
||||||
target1.editor.y=31
|
target1.editor.y=31
|
||||||
target1.height=50
|
target1.height=50
|
||||||
@@ -27,8 +27,8 @@ target1.width=100
|
|||||||
target1.x=70
|
target1.x=70
|
||||||
target1.y=10
|
target1.y=10
|
||||||
target2.editor.height=1049
|
target2.editor.height=1049
|
||||||
target2.editor.width=960
|
target2.editor.width=1920
|
||||||
target2.editor.x=960
|
target2.editor.x=0
|
||||||
target2.editor.y=31
|
target2.editor.y=31
|
||||||
target2.height=50
|
target2.height=50
|
||||||
target2.name=Library
|
target2.name=Library
|
||||||
|
Reference in New Issue
Block a user