Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Default ctor
 /// </summary>
 public BinarySensor()
 {
     activateTrigger   = new ActionTrigger(this, Strings.TriggerNameActivate);
     deActivateTrigger = new ActionTrigger(this, Strings.TriggerNameDeActivate);
 }