Class IndoorLevel


  • public final class IndoorLevel
    extends java.lang.Object
    하나의 실내지도 층을 나타내는 불변 클래스. 하나의 실내지도 층은 다른 층과 연결될 수 있습니다. 이 클래스의 인스턴스는 직접 생성할 수 없고 IndoorZone을 이용해서 가져올 수 있습니다.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      IndoorView getConnection​(java.lang.String zoneId)
      연결된 층 중 구역 ID가 zoneId인 실내지도 뷰를 반환합니다.
      int getConnectionIndex​(java.lang.String zoneId)
      연결된 층 중 구역 ID가 zoneId인 실내지도 뷰의 인덱스를 반환합니다.
      IndoorView[] getConnections()
      연결된 층의 실내지도 뷰 목록을 반환합니다.
      IndoorView getIndoorView()
      층에 해당하는 실내지도 뷰를 반환합니다.
      java.lang.String getName()
      층의 명칭을 반환합니다.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getName

        @NonNull
        public java.lang.String getName()
        층의 명칭을 반환합니다.
        Returns:
        층 명칭.
      • getIndoorView

        @NonNull
        public IndoorView getIndoorView()
        층에 해당하는 실내지도 뷰를 반환합니다.
        Returns:
        층에 해당하는 실내지도 뷰.
      • getConnections

        @NonNull
        public IndoorView[] getConnections()
        연결된 층의 실내지도 뷰 목록을 반환합니다.
        Returns:
        연결된 실내지도 뷰 목록.
      • getConnectionIndex

        public int getConnectionIndex​(@NonNull
                                      java.lang.String zoneId)
        연결된 층 중 구역 ID가 zoneId인 실내지도 뷰의 인덱스를 반환합니다.
        Parameters:
        zoneId - 구역 ID.
        Returns:
        실내지도 뷰의 인덱스. 연결된 층 중에 ID가 zoneId인 층이 없을 경우 -1.
      • getConnection

        @Nullable
        public IndoorView getConnection​(@NonNull
                                        java.lang.String zoneId)
        연결된 층 중 구역 ID가 zoneId인 실내지도 뷰를 반환합니다.
        Parameters:
        zoneId - 구역 ID.
        Returns:
        실내지도 뷰. 연결된 층 중에 ID가 zoneId인 층이 없을 경우 null.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object