|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Tables are finite maps from indexes to values.
Class Specifications |
instance public invariant this.entries != null&&( \forall org.jmlspecs.models.JMLType e; this.entries.has(e); e instanceof org.jmlspecs.samples.table.Entry); instance public invariant ( \forall org.jmlspecs.samples.table.Entry e1; this.entries.has(e1); ( \forall org.jmlspecs.samples.table.Entry e2; this.entries.has(e2)&&!(e1.equals(e2)); !(e1.index.equals(e2.index)))); public initially this.entries != null&&this.entries.isEmpty(); |
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT; public represents _getClass <- \typeof(this); |
Model Field Summary | |
[instance] JMLValueSet |
entries
The model of the entries (rows) in the table. |
Method Summary | |
void |
addEntry(Entry e)
Add the given entry to this table. |
boolean |
isUsedIndex(JMLType d)
Is the given index used in the table? |
JMLType |
mapTo(JMLType d)
Return the value at the given index. |
void |
removeEntry(JMLType d)
Take out the given entry from this table. |
Model Field Detail |
public JMLValueSet entries
Method Detail |
public boolean isUsedIndex(JMLType d)
public void addEntry(Entry e)
public void removeEntry(JMLType d)
public JMLType mapTo(JMLType d)
|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |