BAPS/src/BAPPacker.cpp

00001 /******************************************************************
00002  *
00003  * Filename    : BAPPacker.cpp
00004  * Author      : David Ong Tat-Wee
00005  *
00006  * Version     : 1.0
00007  * Date        : 11 May 98
00008  *
00009  * Description : Implements the BAP Packing Stub
00010  *
00011  * Reference   : nil
00012  *
00013  * Notes       : The BAP Packing algorithm
00014  *
00015  * Changes     : nil
00016  *
00017  * Copyright   : Copyright (c) 1998
00018  *               All rights reserved by
00019  *               Resource Allocation and Scheduling Group
00020  *               Department of Information Systems and Computer Science
00021  *               National University of Singapore
00022  *
00023  ******************************************************************/
00024 
00025 
00026 #include "BAPPacker.h"
00027 
00028 using std::cout;
00029 using std::endl;
00030 
00031 BAPPacker::BAPPacker(BAPPackage& aPackage)
00032 : BAPBase(), mPackage(aPackage)
00033 {
00034 }
00035 
00036 
00037 BAPPacker::~BAPPacker()
00038 {
00039 }
00040 
00041 
00042 void BAPPacker::Print(int aW, int aDetail) const
00043 {
00044    cout  << tab(aW) << "--== BAPPacker ==--" << endl
00045          << tab(aW) << "  ID        = " << ID() << endl
00046          << tab(aW) << "  Name      = " << Name() << endl
00047          << endl;
00048 
00049    mPackage.Print(aW + INDENT, aDetail);
00050 }
00051 

Generated on Tue Sep 9 15:40:10 2008 for BAP by  doxygen 1.5.3