package com.qaup.collision.road.model;

/**
 * Enumeration representing the directionality of a road.
 */
public enum RoadDirectionality {
    /**
     * Traffic flows in both directions.
     */
    TWO_WAY("双向"),

    /**
     * Traffic flows in only one direction.
     */
    ONE_WAY("单向"),

    /**
     * Directionality is unknown or not specified.
     */
    UNKNOWN("未知");

    private final String chineseName;

    RoadDirectionality(String chineseName) {
        this.chineseName = chineseName;
    }

    public String getChineseName() {
        return chineseName;
    }

    public static RoadDirectionality fromChineseName(String chineseName) {
        for (RoadDirectionality value : values()) {
            if (value.chineseName.equals(chineseName)) {
                return value;
            }
        }
        return UNKNOWN;
    }
} 