JML

org.jmlspecs.samples.dirobserver
Interface DirObserver


public interface DirObserver

Observers (i.e. listeners) in the directory system.


Class Specifications

Specifications inherited from class Object
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT;
public represents _getClass <- \typeof(this);

Model Field Summary
[instance]  JMLDataGroup obsState
          The state of this observer.
 
Method Summary
 void addNotification(Directory o, String n)
          Receive a notification that a given name is being added to the given directory.
 void removeNotification(Directory o, String n)
          Receive a notification that a given name is being removed from the given directory.
 

Model Field Detail

obsState

public JMLDataGroup obsState
The state of this observer.

Specifications: instance
Method Detail

addNotification

public void addNotification(Directory o,
                            String n)
Receive a notification that a given name is being added to the given directory.

Specifications:
public normal_behavior
requires o != null&&o.in_notifier&&n != null&&!n.equals("");
assignable obsState;
ensures o.equals(\old(o));

removeNotification

public void removeNotification(Directory o,
                               String n)
Receive a notification that a given name is being removed from the given directory.

Specifications:
public normal_behavior
requires o != null&&o.in_notifier&&n != null&&!n.equals("");
assignable obsState;
ensures o.equals(\old(o));

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.