Class GKGraph

    • Constructor Detail

      • GKGraph

        protected GKGraph​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static GKGraph alloc()
      • allocWithZone

        public static GKGraph allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • graphWithNodes

        public static GKGraph graphWithNodes​(@NotNull
                                             @NotNull NSArray<? extends GKGraphNode> nodes)
        Creates a graph with the provided array of nodes. [@params] nodes the nodes to create the graph with
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • new_objc

        public static GKGraph new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • addNodes

        public void addNodes​(@NotNull
                             @NotNull NSArray<? extends GKGraphNode> nodes)
        Adds nodes to this graph. No new connections are added. If the node already exists in this graph this does nothing.
        Parameters:
        nodes - and array of nodes to be added
      • connectNodeToLowestCostNodeBidirectional

        public void connectNodeToLowestCostNodeBidirectional​(@NotNull
                                                             @NotNull GKGraphNode node,
                                                             boolean bidirectional)
        Connects the node to this graph via the lowest cost node to reach in this graph
        Parameters:
        node - the node to connect
        bidirectional - should the connection be bidirectional? Otherwise it is one way connected into the graph
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • findPathFromNodeToNode

        @NotNull
        public @NotNull NSArray<? extends GKGraphNode> findPathFromNodeToNode​(@NotNull
                                                                              @NotNull GKGraphNode startNode,
                                                                              @NotNull
                                                                              @NotNull GKGraphNode endNode)
        Attempts to find the optimal path between the two nodes indicated. If such a path exists, it is returned in start to end order. If it doesn't exist, the array returned will be empty. Asserts if neither of these nodes are in this graph. Use [GKGraphNode findPathFromNode:] instead.
        Parameters:
        startNode - node to start pathing from
        endNode - goal node of the pathfinding attempt
      • nodes

        @Nullable
        public @Nullable NSArray<? extends GKGraphNode> nodes()
        The list of nodes in this graph
      • removeNodes

        public void removeNodes​(@NotNull
                                @NotNull NSArray<? extends GKGraphNode> nodes)
        Removes nodes from this graph. All connections starting and/or ending with this node are removed.
        Parameters:
        nodes - an array of nodes to be removed
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.