JML

org.jmlspecs.samples.misc
Interface Counter

All Known Implementing Classes:
Meter

public interface Counter

A simple Counter. This class is a demo of behavioral subtyping.


Field Summary
static int CAPACITY
          The capacity of this counter.
 
Method Summary
 void inc()
          A model of the value of this counter.
 int value()
          Return the value of this counter.
 

Field Detail

CAPACITY

public static final int CAPACITY
The capacity of this counter.

Method Detail

inc

public void inc()
A model of the value of this counter. Increment this counter


value

public int value()
Return the value of this counter.


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.