@@ -79,20 +79,11 @@ export class Action<T> extends ScheduledTrigger<T> implements Read<T> {
7979 tag = tag . getLaterTag ( delay ) ;
8080
8181 if ( this . action . origin === Origin . physical ) {
82- // If the resulting timestamp from delay is less than the current physical time
83- // on the platform, then the timestamp becomes the current physical time.
84- // Otherwise the tag is computed like a logical action's tag.
85-
86- const physicalTime = getCurrentPhysicalTime ( ) ;
87- if ( tag . time . isEarlierThan ( physicalTime ) ) {
88- tag = new Tag ( getCurrentPhysicalTime ( ) , 0 ) ;
89- } else {
90- tag = tag . getMicroStepsLater ( 1 ) ;
91- }
82+ tag = new Tag ( getCurrentPhysicalTime ( ) , 0 ) . getLaterTag ( delay ) ;
9283 } else if ( this . action instanceof FederatePortAction ) {
9384 if ( intendedTag === undefined ) {
9485 throw new Error (
95- "FederatedPortAction must have an intended tag from RTI ."
86+ "No intended tag given while attempting to schedule an event coming from another federate ."
9687 ) ;
9788 }
9889 if (
@@ -132,8 +123,6 @@ export class Action<T> extends ScheduledTrigger<T> implements Read<T> {
132123 ) } `
133124 ) ;
134125 tag = intendedTag ;
135- } else if ( delay . isEqualTo ( TimeValue . zero ( ) ) ) {
136- tag = tag . getMicroStepsLater ( 1 ) ;
137126 }
138127
139128 Log . debug (
@@ -198,7 +187,7 @@ export class FederatePortAction<T> extends Action<T> {
198187 constructor (
199188 __parent__ : Reactor ,
200189 origin : Origin ,
201- minDelay : TimeValue = TimeValue . secs ( 0 )
190+ minDelay : TimeValue = TimeValue . zero ( )
202191 ) {
203192 super ( __parent__ , origin , minDelay ) ;
204193 }
0 commit comments