00001 /* 00002 * ATRWrapper.java 00003 * 00004 * Copyright (c) 2003, 2004 The University of Utah and the Flux Group. 00005 * All rights reserved. 00006 * 00007 * This file is licensed under the terms of the GNU Public License. 00008 * See the file "license.terms" for restrictions on redistribution 00009 * of this file, and for a DISCLAIMER OF ALL WARRANTIES. 00010 */ 00011 00012 /** 00013 * @file ATRWrapper.java 00014 * 00015 * Basic implementation of a delegate for the ATR's interface. 00016 */ 00017 00018 /** 00019 * Wrapper class for the adapter/delegate. 00020 * 00021 * @see ATRDelegate.asl 00022 */ 00023 public class ATRWrapper 00024 extends ATRAdapter 00025 { 00026 /** 00027 * Construct an ATRWrapper object. 00028 * 00029 * @param rtt The Broker::RealTimeTask object to wrap. 00030 * @param period The period of the task in microseconds. 00031 * @param deadline The deadline of the task in microseconds. 00032 */ 00033 public ATRWrapper(Broker.RealTimeTask rtt, 00034 int period, 00035 int deadline) 00036 { 00037 long qk_start; 00038 00039 super.rta_CPUReserve = new Broker.CPUReserve(); 00040 super.rta_KeyedReportParameters = new Broker.NamedValue[0]; 00041 super.rta_Advocate = rtt; 00042 super.rta_Period = period; 00043 super.rta_Deadline = deadline; 00044 super.rta_Qosket = this; 00045 } 00046 }