public final class Break extends Object
on() for a GTU and for perception.
 Should neither be available within the context of a method that needs to be debugged, onSub() can be used in
 combination with onSuper() at a higher-level method with a GTU or perception. This class requires the user to set
 a break point in the method trigger().
 
 Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
on(org.opentrafficsim.core.gtu.GTU gtu,
  String id,
  double time,
  boolean additionalCondition)  | 
static void | 
on(org.opentrafficsim.core.gtu.perception.Perception<?> perception,
  String id,
  double time,
  boolean additionalCondition)  | 
static void | 
onSub()
This method can be used if the context of a lower-level function does not contain the information on which to break. 
 | 
static void | 
onSub(boolean additionalCondition)
This method can be used if the context of a lower-level function does not contain the information on which to break. 
 | 
static void | 
onSuper(org.opentrafficsim.core.gtu.GTU gtu,
       String id,
       double time,
       boolean additionalCondition)
Sets a break condition to true which is triggered by  
onSub() at a lower level where context is insufficient to
 determine the break condition. | 
static void | 
onSuper(org.opentrafficsim.core.gtu.perception.Perception<?> perception,
       String id,
       double time,
       boolean additionalCondition)
Sets a break condition to true which is triggered by  
onSub() at a lower level where context is insufficient to
 determine the break condition. | 
public static void onSuper(org.opentrafficsim.core.gtu.perception.Perception<?> perception,
                           String id,
                           double time,
                           boolean additionalCondition)
onSub() at a lower level where context is insufficient to
 determine the break condition.perception - perception to obtain gtu fromid - GTU id to break ontime - time to break at (or after)additionalCondition - additional conditionpublic static void onSuper(org.opentrafficsim.core.gtu.GTU gtu,
                           String id,
                           double time,
                           boolean additionalCondition)
onSub() at a lower level where context is insufficient to
 determine the break condition.gtu - GTUid - GTU id to break ontime - time to break at (or after)additionalCondition - additional conditionpublic static void onSub()
onSuper().public static void onSub(boolean additionalCondition)
onSuper().additionalCondition - boolean; additional conditionpublic static void on(org.opentrafficsim.core.gtu.perception.Perception<?> perception,
                      String id,
                      double time,
                      boolean additionalCondition)
perception - perception to obtain gtu fromid - GTU id to break ontime - time to break at (or after)additionalCondition - additional conditionpublic static void on(org.opentrafficsim.core.gtu.GTU gtu,
                      String id,
                      double time,
                      boolean additionalCondition)
gtu - GTUid - GTU id to break ontime - time to break at (or after)additionalCondition - additional conditionCopyright © 2014–2018 Delft University of Technology. All rights reserved.