tesl
Class DelayedImplication<M1 extends java.lang.Comparable<? super M1>,M2 extends java.lang.Comparable<? super M2>,S extends java.lang.Comparable<? super S>>
java.lang.Object
tesl.ImplicationRelation
tesl.DelayedImplication<M1,M2,S>
public class DelayedImplication<M1 extends java.lang.Comparable<? super M1>,M2 extends java.lang.Comparable<? super M2>,S extends java.lang.Comparable<? super S>>
- extends ImplicationRelation
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
immediate_
private boolean immediate_
delay_
private int delay_
n_
private int n_
counting_
private boolean counting_
DelayedImplication
public DelayedImplication(Clock<M1> reference,
Clock<M2> counting,
Clock<S> slave,
int n,
boolean immediate)
- Get slave by delaying reference (immediately or not) by n on counting
- Parameters:
reference - clock to delaycounting - clock for counting the delayslave - delayed clockn - length of the delayimmediate - does the delay start immediately (if 'counting' tick at the same time as 'reference')
DelayedImplication
public DelayedImplication(Clock<M1> reference,
Clock<M2> counting,
Clock<S> slave,
int n)
- Get slave by delaying reference (not immediately) by n on counting
- Parameters:
reference - clock to delaycounting - clock for counting the delayslave - delayed clockn - length of the delay
getReferenceClock
public Clock<?> getReferenceClock()
- Return the reference clock, for the DelayedFor constraint
getCountingClock
public Clock<?> getCountingClock()
- Return the counter clock, for the DelayedFor constraint
induceTicks
public boolean induceTicks()
- Determine whether a tick should be set as "now" on the slave clock
Impose the slave clock to tick synchronously with the n-th tick of
the counter clock (master2 clock) following a tick of the reference
clock (master1 clock)
- Specified by:
induceTicks in class ImplicationRelation
toString
public java.lang.String toString()
- Overrides:
toString in class ImplicationRelation
backup
public ImplicationBackupInterface backup()
- Specified by:
backup in class ImplicationRelation
restore
public void restore(ImplicationBackupInterface bck)
- Specified by:
restore in class ImplicationRelation