1 /*
2 * This file is a part of CAST project.
3 * (c) Copyright 2007, AGH University of Science & Technology
4 * https://caribou.iisg.agh.edu.pl/trac/cast
5 *
6 * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 * http://www.eclipse.org/legal/epl-v10.html
10 */
11 /*
12 * File: IRawDataMoniotorable.java
13 * Created: 2008-10-09
14 * Author: kpietak
15 * $Id: IRawDataMonitorable.java 2308 2009-01-12 22:33:45Z kpietak $
16 */
17
18 package pl.edu.agh.cast.rawdata.logging;
19
20 /**
21 * Interface for all raw data types which can be monitorable by <code>IRawDataObserver</code> objects.
22 *
23 * @author AGH CAST Team
24 */
25 public interface IRawDataMonitorable {
26
27 /**
28 * Registers a new observer. If the specified observer is already registered it is not added the second time
29 *
30 * @param observer
31 * an observer to register; it cannot be <code>null</code>
32 */
33 public void registerObserver(IRawDataObserver observer);
34
35 /**
36 * Unregisters an existing observer. The method ignores unregistered observers.
37 *
38 * @param observer
39 * an observer to unregister
40 */
41 public void unregisterObserver(IRawDataObserver observer);
42
43 }