-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
eric.bodden
committed
Jul 31, 2012
1 parent
8ec15fd
commit 6b98e13
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
MOPBox/src/de/bodden/mopbox/finitestate/sync/FullSyncingTemplate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package de.bodden.mopbox.finitestate.sync; | ||
|
||
import com.google.common.collect.Multiset; | ||
|
||
import de.bodden.mopbox.finitestate.OpenFSMMonitorTemplate; | ||
import de.bodden.mopbox.generic.ISymbol; | ||
|
||
/** | ||
* An {@link AbstractSyncingFSMMonitorTemplate} that models the gap of events missed by the number | ||
* of missed events. | ||
*/ | ||
public abstract class FullSyncingTemplate<L, K, V> | ||
extends AbstractSyncingFSMMonitorTemplate<L, K, V, FullSyncingTemplate<L,K,V>.FullAbstraction>{ | ||
|
||
private final FullAbstraction FULL_ABSTRACTION = new FullAbstraction(); | ||
|
||
public FullSyncingTemplate(OpenFSMMonitorTemplate<L, K, V> delegate, int max) { | ||
super(delegate, max); | ||
} | ||
|
||
protected FullAbstraction abstraction(Multiset<ISymbol<L, K>> symbols) { | ||
return FULL_ABSTRACTION; | ||
} | ||
|
||
public class FullAbstraction | ||
extends AbstractSyncingFSMMonitorTemplate<L,K,V,FullAbstraction>.SymbolMultisetAbstraction { | ||
|
||
protected FullAbstraction() { | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "FullAbstraction"; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return 37; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
return obj==this; | ||
} | ||
|
||
} | ||
|
||
} |