/// <summary>
 /// Default ctor
 /// </summary>
 private LocStandardPredicate(LocStandardPredicate source)
 {
     includes = (LocOrPredicate)source.includes.Clone();
     includes.EnsureId();
     excludes = (LocOrPredicate)source.excludes.Clone();
     excludes.EnsureId();
 }
Beispiel #2
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public Block()
     : base(32, 16)
 {
     waitProbability = new Property <int>(this, DefaultValues.DefaultBlockWaitProbability);
     minimumWaitTime = new Property <int>(this, DefaultValues.DefaultBlockMinimumWaitTime);
     maximumWaitTime = new Property <int>(this, DefaultValues.DefaultBlockMaximumWaitTime);
     waitPermissions = new LocStandardPredicate();
     waitPermissions.EnsureId();
     reverseSides    = new Property <bool>(this, false);
     changeDirection = new Property <ChangeDirection>(this, DefaultValues.DefaultBlockChangeDirection);
     changeDirectionReversingLocs = new Property <bool>(this, DefaultValues.DefaultBlockChangeDirectionReversingLocs);
     stationMode = new Property <StationMode>(this, DefaultValues.DefaultBlockStationMode);
     blockGroup  = new Property <EntityRef <BlockGroup> >(this, null);
 }
Beispiel #3
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public Route()
 {
     fromBlock         = new Property <EntityRef <Block> >(this, null);
     fromBlockSide     = new Property <BlockSide>(this, BlockSide.Front);
     toBlock           = new Property <EntityRef <Block> >(this, null);
     toBlockSide       = new Property <BlockSide>(this, BlockSide.Back);
     fromEdge          = new Property <EntityRef <Edge> >(this, null);
     toEdge            = new Property <EntityRef <Edge> >(this, null);
     crossingJunctions = new JunctionWithStateSet(this);
     events            = new EventSet(this);
     _enteringSensors  = new EnteringDestinationSensorSet(this);
     _reachedSensors   = new ReachedDestinationSensorSet(this);
     speed             = new Property <int>(this, DefaultValues.DefaultRouteSpeed);
     chooseProbability = new Property <int>(this, DefaultValues.DefaultRouteChooseProbability);
     permissions       = new LocStandardPredicate();
     permissions.EnsureId();
     closed      = new Property <bool>(this, false, null);
     maxDuration = new Property <int>(this, DefaultValues.DefaultRouteMaxDuration);
     enteringDestinationTrigger = new ActionTrigger(this, Strings.TriggerNameEnteringDestination);
     destinationReachedTrigger  = new ActionTrigger(this, Strings.TriggerNameDestinationReached);
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 public RouteEventBehavior()
 {
     appliesTo     = new LocStandardPredicate();
     stateBehavior = new Property <RouteStateBehavior>(this, DefaultValues.DefaultRouteEventBehaviorStateBehavior);
     speedBehavior = new Property <LocSpeedBehavior>(this, DefaultValues.DefaultRouteEventBehaviorSpeedBehavior);
 }