/////////////////////////////////////////////////////////////////////////
//
// © Institute for Software Science, University of Vienna, 2004
//
// Copyright in this software belongs to Institute for Software Science, 
// University of Vienna, Nordbergstrasse 15/C/3, 1090 Vienna, Austria
//
// This software may not be used, sold, licensed, transferred, copied
// or reproduced in whole or in part in any manner or form or in or
// on any media by any person other than in accordance with the terms
// of the Licence Agreement supplied with the software, or otherwise
// without the prior written consent of the copyright owners.
//
// This software is distributed WITHOUT ANY WARRANTY, without even the
// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE, except where stated in the Licence Agreement supplied with
// the software.
//
//	Created By :		Gerhard Engelbrecht
//	Created Date :		2004/04/20
//	Created for Project:	GEMSS
//
/////////////////////////////////////////////////////////////////////////
//
// Dependencies: None
//
/////////////////////////////////////////////////////////////////////////
//
//	Last commit info:	$Author: gerry $
//					$Date: 2004/06/24 13:17:09 $
//					$Revision: 1.3 $
//
/////////////////////////////////////////////////////////////////////////

package at.ac.univie.iss.bm.test;

import java.util.Calendar;

import at.ac.univie.iss.bm.BusinessModel;

public class DummyBusinessModel implements BusinessModel {
	
	public DummyBusinessModel() {
	}

    public double getPrice(Calendar begin, Calendar end, int numberOfNodes) {
    
//  		System.out.println("PRICE: end in ms:   " + end.getTimeInMillis());
//  		System.out.println("PRICE: begin in ms: " + begin.getTimeInMillis());
//  		System.out.println("PRICE: end - begin: " + (end.getTimeInMillis() - begin.getTimeInMillis()));
//  		System.out.println("PRICE: nodes: " + numberOfNodes);

		long s60000 = 60000;
		long minutes = (end.getTimeInMillis() - begin.getTimeInMillis())/s60000;
		double price = minutes * numberOfNodes * 0.2;


    	return price;
	}
}	

