import COM.odi.util.OSHashSet; import COM.odi.util.OSVector; public class Article{ // members of Article class String title; int startPage; int endPage; String electronicEdition; Journal journal; Volume volume; Numbber numbber; OSVector authors; // constructor public Article(Journal j1, Volume v1,Numbber n1){ journal = j1; volume = v1; numbber = n1; authors = new OSVector(); } // methods of Article class // method to add Author to the article public void addAuthor(Author author){ if(authors.contains(author)){ System.out.println("Author Already Exists "); System.exit(0); } authors.add(author); } // method to get the title of the article public String getArticleTitle(){ return title; } // method to get the number of authors of the article public int getNumOfAuthors(){ return authors.size(); } //method to get the journal name public String getJournalName(){ return journal.getJournalName(); } //method to get the number of the number public int getNumbber(){ return numbber.getNumbber(); } // method to get the volume number public int getVolumeNumber(){ return volume.getVolumeNumber(); } // method to get the collection of authors of the article public OSVector getAuthors(){ return authors; } // method to get the start page of the article public int getStartPage(){ return startPage; } // method to get the end page of the article public int getEndPage(){ return endPage; } //method to get the electronic url of the article public String getElectronicUrl(){ return electronicEdition; } // method to get the date of the article public OSDate getArticleDate(){ return numbber.getNumberDate(); } // method the year of the article public int getArticleYear(){ return numbber.getArticleYear(); } }