/* * Copyright (c) 2004 University of Murcia. All rights reserved. * -------------------------------------------------------------- * For more information, please see . */ package org.umu.cops.prpep; import org.umu.cops.stack.COPSError; import java.util.Map; /** * COPSPepDataProcess process policy data and events. * * @version COPSPepDataProcess.java, v 2.00 2004 * */ public abstract class COPSPepDataProcess { /** * Establish PDP decisions * * @param man - the state manager * @param removeDecs - the remove decisions * @param installDecs - the install decisions * @param errorDecs - the error decisions */ public abstract void setDecisions(COPSPepReqStateMan man, Map removeDecs, Map installDecs, Map errorDecs); /** * If the report is fail, return true * * @return - t/f */ public abstract boolean isFailReport(COPSPepReqStateMan man); /** * Return Report Data * * @return - the report data */ public abstract Map getReportData(COPSPepReqStateMan man); /** * Return Client Data * * @return - the client data */ public abstract Map getClientData(COPSPepReqStateMan man); /** * Return Accounting Data * * @return - the accounting data */ public abstract Map getAcctData(COPSPepReqStateMan man); /** * Notify the connection closed */ public abstract void notifyClosedConnection(COPSPepReqStateMan man, COPSError error); /** * Notify the KAlive timeout */ public abstract void notifyNoKAliveReceived(COPSPepReqStateMan man); /** * Process a PDP request to close a Request State * * @param man Request State Manager */ public abstract void closeRequestState(COPSPepReqStateMan man); /** * Process a PDP request to open a new Request State * * @param man Request State Manager */ public abstract void newRequestState(COPSPepReqStateMan man); }