code: public void addState(TrafficLightState state)
      {
          if(this.states == null)
              this.states = new ArrayList<TrafficLightState>();
          this.states.add(state);
      }
docs: Adds a state to the traffic light.
  @param state The state to add to the traffic light