singrdk/base/Kernel/Singularity/Scheduling/Full/IResourceAmount.cs

32 lines
805 B
C#
Raw Normal View History

2008-03-05 09:52:00 -05:00
////////////////////////////////////////////////////////////////////////////////
//
// Microsoft Research Singularity
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// File: Kernel\Singularity\IResourceAmount.cs
//
// Note:
//
using System;
namespace Microsoft.Singularity.Scheduling
{
/// <summary>
/// The base class from which resource-specific resource amount classes are derived.
/// </summary>
public abstract class IResourceAmount
{
/// <summary>
/// Get the resource object that this IResourceAmount object quantifies
/// </summary>
public abstract IResource Resource
{
get;
}
public abstract IResourceAmount AddTo(IResourceAmount amount);
}
}