Class GKGraphNode

    • Constructor Detail

      • GKGraphNode

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

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

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

        public static java.lang.String description_static()
      • 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

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

        public static java.lang.Object 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()
      • addConnectionsToNodesBidirectional

        public void addConnectionsToNodesBidirectional​(NSArray<? extends GKGraphNode> nodes,
                                                       boolean bidirectional)
        Add a connection to a group of other nodes indicating those nodes can be reached from this node. A new connection is not created if it already exists.
        Parameters:
        nodes - The array of nodes that are end points for their respective connections
        bidirectional - should a connection also be added connecting the destination node back to this node?
      • connectedNodes

        public NSArray<? extends GKGraphNode> connectedNodes()
        List of other graph nodes that this node has an edge leading to.
      • costToNode

        public float costToNode​(GKGraphNode node)
        Returns the actual cost to reach the indicated node from this node
      • estimatedCostToNode

        public float estimatedCostToNode​(GKGraphNode node)
        Returns the estimated heuristic cost to reach the indicated node from this node
        Parameters:
        node - The end point of the edge who's cost is to be estimated
      • findPathFromNode

        public NSArray<? extends GKGraphNode> findPathFromNode​(GKGraphNode startNode)
        As with findPathToNode: except this node is the goal node and a startNode is specified
        Parameters:
        startNode - the start node of the pathfinding attempt
      • findPathToNode

        public NSArray<? extends GKGraphNode> findPathToNode​(GKGraphNode goalNode)
        Attempts to find the optimal path between this node and the indicated goal node. If such a path exists, it is returned in start to end order. If it doesn't exist, the array returned will be empty.
        Parameters:
        goalNode - the goal node of the pathfinding attempt
      • removeConnectionsToNodesBidirectional

        public void removeConnectionsToNodesBidirectional​(NSArray<? extends GKGraphNode> nodes,
                                                          boolean bidirectional)
        Removes connections to a group of other nodes indicating those nodes can no longer be reached from this node. Nothing happens if a particular connection does not exist.
        Parameters:
        nodes - The array of nodes that are end points of the edges to be removed
        bidirectional - should the connection also be added the destination node back to this node also be removed if it exists?
      • 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