ca.aura.artefacts.reports
Class DefaultReport

java.lang.Object
  |
  +--ca.aura.artefacts.reports.DefaultReport
All Implemented Interfaces:
Report
Direct Known Subclasses:
ManagedReport

public class DefaultReport
extends java.lang.Object
implements Report

Author:
aforward

Constructor Summary
DefaultReport()
          default
DefaultReport(java.util.Date date)
          set the date of the report
 
Method Summary
 void add(Artefact artefact)
          add an artefact without usage
 void add(Artefact artefact, Usage usage)
          add a usage stat to the artefact
 java.util.Iterator getArtefacts()
          get an iterator of artefacts considered in this report
 java.util.Date getDate()
          the date of the report
 Usage getLastUsage(Artefact artefact)
          get last usage
 java.util.Iterator getUsage(Artefact artefact)
          get the iterator of usages of the artefact
protected  void insertInto(Vector v, Usage usage)
          add a usage item
 boolean isUsed(Artefact artefact)
          is this artefact used?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReport

public DefaultReport()
default


DefaultReport

public DefaultReport(java.util.Date date)
set the date of the report

Method Detail

getDate

public java.util.Date getDate()
Description copied from interface: Report
the date of the report

Specified by:
getDate in interface Report
See Also:
ca.aura.artefacts.usage.Report#getDate()

getArtefacts

public java.util.Iterator getArtefacts()
Description copied from interface: Report
get an iterator of artefacts considered in this report

Specified by:
getArtefacts in interface Report
See Also:
ca.aura.artefacts.usage.Report#getArtefacts()

isUsed

public boolean isUsed(Artefact artefact)
Description copied from interface: Report
is this artefact used?

Specified by:
isUsed in interface Report
See Also:
ca.aura.artefacts.usage.Report#isUsed(Artefact)

getUsage

public java.util.Iterator getUsage(Artefact artefact)
Description copied from interface: Report
get the iterator of usages of the artefact

Specified by:
getUsage in interface Report
See Also:
ca.aura.artefacts.usage.Report#getUsage(Artefact)

getLastUsage

public Usage getLastUsage(Artefact artefact)
Description copied from interface: Report
get last usage

Specified by:
getLastUsage in interface Report
See Also:
ca.aura.artefacts.usage.Report#getLastUsage(Artefact)

add

public void add(Artefact artefact,
                Usage usage)
add a usage stat to the artefact


add

public void add(Artefact artefact)
add an artefact without usage


insertInto

protected void insertInto(Vector v,
                          Usage usage)
add a usage item



Copyright © 2002 University of Ottawa. All Rights Reserved.