<?xml version="1.0"?>
<!--
/////////////////////////////////////////////////////////////////////////
//
// © University of Southampton IT Innovation Centre, 2006
//
// Copyright in this library belongs to the IT Innovation Centre of
// 2 Venture Road, Chilworth Science Park, Southampton SO16 7NP, UK.
//
// 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:            Mark McArdle
//  Created Date:          2006-06-06
//  Created for Project:   Simdat
//
/////////////////////////////////////////////////////////////////////////
//
//  Last commit info:      $Author: mm $
//                         $Date: 2006-05-30 11:58:27 +0100 (Tue, 30 May 2006) $
//                         $Revision: 4261 $
//
/////////////////////////////////////////////////////////////////////////
-->
<!-- constraints is a mandatory list of constraint elements.  It may be empty.  -->
<constraints>
	<!-- A constraint in this file must be type INSTANTANEOUS -->
	<!-- This constraint specifies that the service provider has 10 CPU in their cluster -->
	<constraint type='INSTANTANEOUS'>
		<metric type='RESOURCE'>
			<uri>http://www.gria.org/sla/metric/resource/cpu</uri>
			<description>
				<description>CPU</description>
			</description>
			<units type='DECIMAL'>
				<instantaneous>CPU</instantaneous>
			</units>
		</metric>
		<!-- bound may be LT or LE, meaning 'less than' and 'less than or equal to' respectively -->
		<bound>LE</bound>
		<private>false</private>
		<!-- limit is the limit of the constraint, in this case we are saying we will allocated <= 10.0 CPU -->
		<limit>10.0</limit>
		<contention>1.0</contention>
		<repeating>false</repeating>
	</constraint>

	<!-- This constraint says that the total disc space at the service provider is 2GiB -->
	<constraint type='INSTANTANEOUS'>
		<metric type='RESOURCE'>
			<uri>http://www.gria.org/sla/metric/resource/disc</uri>
			<description>
				<description>disc space</description>
				<instantaneous>amount of disc space</instantaneous>
			</description>
			<units type='BINARY'>
				<instantaneous>B</instantaneous>
			</units>
		</metric>
		<bound>LE</bound>
		<private>false</private>
		<limit>2147483648</limit>  <!-- 2GiB -->
		<contention>1.0</contention>
		<repeating>false</repeating>
	</constraint>
</constraints>


