-
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
Sep 10, 2012
1 parent
7aac20b
commit 31b4c93
Showing
7 changed files
with
92 additions
and
19 deletions.
There are no files selected for viewing
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
29 changes: 29 additions & 0 deletions
29
MOPBox/src/de/bodden/mopbox/finitestate/sync/DefaultSyncingFSMMonitorTemplate.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,29 @@ | ||
package de.bodden.mopbox.finitestate.sync; | ||
|
||
import java.util.Collections; | ||
import java.util.Set; | ||
|
||
import de.bodden.mopbox.finitestate.OpenFSMMonitorTemplate; | ||
import de.bodden.mopbox.generic.ISymbol; | ||
|
||
public abstract class DefaultSyncingFSMMonitorTemplate<L, K, V, A extends AbstractSyncingFSMMonitorTemplate<L,K,V,A>.SymbolMultisetAbstraction> extends AbstractSyncingFSMMonitorTemplate<L, K, V, A> { | ||
|
||
public DefaultSyncingFSMMonitorTemplate(OpenFSMMonitorTemplate<L, K, V> delegate, int max) { | ||
super(delegate, max); | ||
} | ||
|
||
@Override | ||
protected int samplingPeriod() { | ||
return delegate.getStates().size()+2; | ||
} | ||
|
||
@Override | ||
protected double samplingRate() { | ||
return 0.2d; | ||
} | ||
|
||
@Override | ||
protected Set<ISymbol<L, K>> criticalSymbols() { | ||
return Collections.emptySet(); | ||
} | ||
} |
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
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
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
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
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