org.cocome.tradingsystem.inventory.application.reporting.impl
Class ReportingImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.cocome.tradingsystem.inventory.application.reporting.impl.ReportingImpl
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, ReportingIf

public class ReportingImpl
extends java.rmi.server.UnicastRemoteObject
implements ReportingIf

Author:
Yannick Welsch
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ReportingImpl()
           
 
Method Summary
 ReportTO getMeanTimeToDeliveryReport(EnterpriseTO enterpriseTO)
          Used for implementation of UC 6:ShowDeliveryReports
 ReportTO getStockReport(EnterpriseTO enterpriseTO)
          Generates report of cumulated available stocks of specified enterprise.
 ReportTO getStockReport(StoreTO storeTO)
          Used for implementation of UC 5:ShowStockReports
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReportingImpl

public ReportingImpl()
              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

getMeanTimeToDeliveryReport

public ReportTO getMeanTimeToDeliveryReport(EnterpriseTO enterpriseTO)
Used for implementation of UC 6:ShowDeliveryReports

Specified by:
getMeanTimeToDeliveryReport in interface ReportingIf
Parameters:
enterpriseTO - TradingEnterprise for which the report should be generated.
Returns:
Report transfer object containing mean time to delivery information.

getStockReport

public ReportTO getStockReport(StoreTO storeTO)
Used for implementation of UC 5:ShowStockReports

Specified by:
getStockReport in interface ReportingIf
Parameters:
storeTO - Store for which report should be generated.
Returns:
Report transfer object containing stock information.

getStockReport

public ReportTO getStockReport(EnterpriseTO enterpriseTO)
Description copied from interface: ReportingIf
Generates report of cumulated available stocks of specified enterprise.

Specified by:
getStockReport in interface ReportingIf
Parameters:
enterpriseTO - The enterprise for which the report should be generated.
Returns:
Report transfer object containing cumulated stock information.