1 /* 2 * $HeadURL: $ 3 * $Date: $ 4 * $Revision: $ 5 * $Author: $ 6 * 7 * Copyright (c) 2005 MindTree Consulting Ltd. 8 * 9 * This file is part of Insight. 10 * 11 * Insight is free software: you can redistribute it and/or modify it under the 12 * terms of the GNU General Public License as published by the Free Software 13 * Foundation, either version 3 of the License, or (at your option) any later 14 * version. 15 * 16 * Insight is distributed in the hope that it will be useful, but 17 * WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 19 * Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License along with 22 * Insight. If not, see <http://www.gnu.org/licenses/>. 23 */ 24 25 package com.mindtree.techworks.insight.model; 26 27 /** 28 * 29 * The <code>ILogEventModelMutator</code> interface is a used for notifying 30 * the IMutatorListeners. All the actions that changes/mutates LogEventModel 31 * should implement this 32 * 33 * @author Antony Pulicken 34 * @version 1.0, 05/03/04 35 */ 36 37 public interface ILogEventModelMutator { 38 39 /** 40 * Constants to identify the type of the mutator 41 */ 42 public static final int NON_TAILING_MUTATOR = 0; 43 public static final int TAILING_MUTATOR = 1; 44 45 46 /** 47 * Constants for Info flags reported at the end of mutating the model 48 */ 49 public static final int SUCCESS = 0; 50 public static final int FAILURE = 1; 51 52 /** 53 * Adds the specified MutatorListener 54 * @param mutatorListener the IMutatorListener to add 55 */ 56 public void addMutatorListener (IMutatorListener mutatorListener); 57 58 /** 59 * Removes the specified MutatorListener 60 * @param mutatorListener the MutatorListener to remove 61 */ 62 public void removeMutatorListener (IMutatorListener mutatorListener); 63 64 }