|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.xal.model.sync.SynchronizationManager
Manages synchronization mappings between accelerator node proxies and lattice elements.
| Field Summary | |
static java.lang.String |
DEFAULT_SYNC_MODE
|
| Constructor Summary | |
SynchronizationManager()
|
|
| Method Summary | |
java.util.List |
allElementsMappedTo(AcceleratorNode aNode)
|
boolean |
checkSynchronization(AcceleratorNode aNode,
java.util.Map values)
|
protected void |
debugPrint()
|
ModelInput |
getModelInput(AcceleratorNode aNode,
java.lang.String propName)
Returns the ModelInput for the specified node's property. |
java.util.Map |
propertiesForNode(AcceleratorNode aNode)
|
void |
removeModelInput(AcceleratorNode aNode,
java.lang.String property)
|
void |
resync()
|
static void |
resync(IElement anElem,
java.util.Map valueMap)
Synchronizes anElem to the property values contained in valueMap. |
ModelInput |
setModelInput(AcceleratorNode aNode,
java.lang.String property,
double value)
Sets the specified node's property to the specified value. |
void |
setSynchronizationMode(java.lang.String newMode)
|
void |
synchronize(IElement anElem,
AcceleratorNode aNode)
Creates a synchronization between the specified element and accelerator node. |
protected java.util.List |
synchronizedElementsMappedTo(AcceleratorNode aNode)
|
static java.util.List |
syncModes()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_SYNC_MODE
| Constructor Detail |
public SynchronizationManager()
| Method Detail |
public static java.util.List syncModes()
public void setSynchronizationMode(java.lang.String newMode)
public void resync()
throws SynchronizationException
SynchronizationException
public static void resync(IElement anElem,
java.util.Map valueMap)
throws SynchronizationException
anElem - element to synchronizevalueMap - a Map whose keys are property names and values are String property values
SynchronizationException
public void synchronize(IElement anElem,
AcceleratorNode aNode)
anElem - the lattice element to create synchronization foraNode - the accelerator node to synchronize the element with
public java.util.Map propertiesForNode(AcceleratorNode aNode)
throws ProxyException
ProxyExceptionpublic java.util.List allElementsMappedTo(AcceleratorNode aNode)
protected java.util.List synchronizedElementsMappedTo(AcceleratorNode aNode)
public ModelInput setModelInput(AcceleratorNode aNode,
java.lang.String property,
double value)
aNode - node whose property to setproperty - name of property to setvalue - double value for property
public ModelInput getModelInput(AcceleratorNode aNode,
java.lang.String propName)
aNode - node whose property to get a ModelInput forpropName - name of property to get a ModelInput for
public void removeModelInput(AcceleratorNode aNode,
java.lang.String property)
protected void debugPrint()
public boolean checkSynchronization(AcceleratorNode aNode,
java.util.Map values)
throws SynchronizationException
SynchronizationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||