Interface ForkCallback
-
public interface ForkCallback
Callback to deliver events from a fork to the parent.- Author:
- Rene Schneider - initial API and implementation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onForkExit(Fork aFork)
Called when the fork exits.void
onSetVariableValue(java.lang.String aQualifiedVariableName, java.lang.Object aValue, boolean aDoSendUpdateFlag)
If the fork sets variables, it will sync them to the parent using this method.void
onTimeSync(java.util.Date aStartDate, java.util.List<org.eclipse.xtext.util.Pair<java.lang.Long,java.time.temporal.TemporalUnit>> aDiffTime, java.math.BigDecimal aProgressionFactor, java.lang.String[] someTargetedForks, Fork aResultTarget)
If the fork wants to perform a time sync, it sends a respective message to the parent, containing a list of all target forks of this timesync.void
onUnsetVariableValue(java.lang.String aQualifiedVariableName, boolean aDoSendUpdateFlag)
If the fork unsets variables, it will sync them to the parent using this method.
-
-
-
Method Detail
-
onSetVariableValue
void onSetVariableValue(java.lang.String aQualifiedVariableName, java.lang.Object aValue, boolean aDoSendUpdateFlag)
If the fork sets variables, it will sync them to the parent using this method.- Parameters:
aQualifiedVariableName
- the variable nameaValue
- the new valueaDoSendUpdateFlag
- whether updates should be distributed to other remoting clients
-
onUnsetVariableValue
void onUnsetVariableValue(java.lang.String aQualifiedVariableName, boolean aDoSendUpdateFlag)
If the fork unsets variables, it will sync them to the parent using this method.- Parameters:
aQualifiedVariableName
- the variable nameaDoSendUpdateFlag
- whether updates should be distributed to other remoting clients
-
onTimeSync
void onTimeSync(java.util.Date aStartDate, java.util.List<org.eclipse.xtext.util.Pair<java.lang.Long,java.time.temporal.TemporalUnit>> aDiffTime, java.math.BigDecimal aProgressionFactor, java.lang.String[] someTargetedForks, Fork aResultTarget)
If the fork wants to perform a time sync, it sends a respective message to the parent, containing a list of all target forks of this timesync. The master then relays the message to these forks (and processes it for himself if requested).- Parameters:
aStartDate
-aDiffTime
-aProgressionFactor
-someTargetedForks
-
-
onForkExit
void onForkExit(Fork aFork)
Called when the fork exits.- Parameters:
aFork
- the fork
-
-