public class DefaultSynchronization extends Object implements Synchronization
| Constructor and Description |
|---|
DefaultSynchronization() |
| Modifier and Type | Method and Description |
|---|---|
<T> Set<T> |
synchronizable(Collection<Set<T>> alphl)
Construct the synchronization alphabet from a collection of alphabets.
|
<T> Set<T> |
synchronizable(Set<T> a,
Set<T> b)
Compute the synchronizable letters from two alphabets.
|
Object |
synchronize(Object t1,
Object t2)
Synchronize two transitions.
|
boolean |
synchronizeWith(Object object,
Set<Object> alph)
Checks whether or not the given letter is synchronizable in the given
automaton's alphabet.
|
public Object synchronize(Object t1, Object t2)
Synchronizationnull, then no synchronization occurs.synchronize in interface Synchronizationt1 - first label to synchronizet2 - second label to synchronizepublic <T> Set<T> synchronizable(Set<T> a, Set<T> b)
Synchronizationsynchronizable in interface SynchronizationT - typea - an alphabetb - another alphabetpublic <T> Set<T> synchronizable(Collection<Set<T>> alphl)
Synchronizationsynchronizable in interface SynchronizationT - typealphl - alphlalphl that could be synchronized.public boolean synchronizeWith(Object object, Set<Object> alph)
SynchronizationsynchronizeWith in interface Synchronizationobject - the letter to checkalph - the alphabetalph, false otherwise.Copyright © 2020. All rights reserved.