Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOOXPVerifierStage(OOInternal) Category Reference

#include <OOOXPVerifierStageInternal.h>

Instance Methods

(void) - setVerifier:
 
(BOOL) - isDependentOf:
 
(void) - registerDependency:
 
(void) - dependencyRegistrationComplete
 
(BOOL) - canRun
 
(void) - performRun
 
(void) - noteSkipped
 
(NSSet *) - resolvedDependencies
 
(NSSet *) - resolvedDependents
 

Detailed Description

Definition at line 121 of file OOOXPVerifierStage.m.

Method Documentation

◆ canRun

- (BOOL) canRun

Extends class OOOXPVerifierStage.

Definition at line 1 of file OOOXPVerifierStage.m.

159{
160 return _canRun;
161}

◆ dependencyRegistrationComplete

- (void) dependencyRegistrationComplete

Extends class OOOXPVerifierStage.

Definition at line 1 of file OOOXPVerifierStage.m.

196{
197 _canRun = [_incompleteDependencies count] == 0;
198}

◆ isDependentOf:

- (BOOL) isDependentOf: (OOOXPVerifierStage *) stage

Extends class OOOXPVerifierStage.

Definition at line 1 of file OOOXPVerifierStage.m.

129 :(OOOXPVerifierStage *)stage
130{
131 NSEnumerator *directDepEnum = nil;
132 OOOXPVerifierStage *directDep = nil;
133
134 if (stage == nil) return NO;
135
136 // Direct dependency check.
137 if ([_dependencies containsObject:stage]) return YES;
138
139 // Recursive dependency check.
140 for (directDepEnum = [_dependencies objectEnumerator]; (directDep = [directDepEnum nextObject]); )
141 {
142 if ([directDep isDependentOf:stage]) return YES;
143 }
144
145 return NO;
146}
return nil

◆ noteSkipped

- (void) noteSkipped

Extends class OOOXPVerifierStage.

Definition at line 1 of file OOOXPVerifierStage.m.

186{
187 assert(_canRun && !_hasRun);
188
189 _hasRun = YES;
190 _canRun = NO;
191 [_dependents makeObjectsPerformSelector:@selector(dependencyCompleted:) withObject:self];
192}

◆ performRun

- (void) performRun

Extends class OOOXPVerifierStage.

Definition at line 1 of file OOOXPVerifierStage.m.

165{
166 assert(_canRun && !_hasRun);
167
169 @try
170 {
171 [self run];
172 }
173 @catch (NSException *exception)
174 {
175 OOLog(@"verifyOXP.exception", @"***** Exception while running verification stage \"%@\": %@", [self name], exception);
176 }
178
179 _hasRun = YES;
180 _canRun = NO;
181 [_dependents makeObjectsPerformSelector:@selector(dependencyCompleted:) withObject:self];
182}
void OOLogPushIndent(void)
Definition OOLogging.m:316
void OOLogPopIndent(void)
Definition OOLogging.m:340
#define OOLog(class, format,...)
Definition OOLogging.h:88

◆ registerDependency:

- (void) registerDependency: (OOOXPVerifierStage *) dependency

Extends class OOOXPVerifierStage.

Definition at line 1 of file OOOXPVerifierStage.m.

149 :(OOOXPVerifierStage *)dependency
150{
151 [_dependencies addObject:dependency];
152 [_incompleteDependencies addObject:dependency];
153
154 [dependency registerDepedent:self];
155}
void registerDepedent:(OOOXPVerifierStage *dependent)

◆ resolvedDependencies

- (NSSet *) resolvedDependencies

Extends class OOOXPVerifierStage.

Definition at line 1 of file OOOXPVerifierStage.m.

202{
203 return _dependencies;
204}

◆ resolvedDependents

- (NSSet *) resolvedDependents

Extends class OOOXPVerifierStage.

Definition at line 1 of file OOOXPVerifierStage.m.

208{
209 return _dependents;
210}

◆ setVerifier:

- (void) setVerifier: (OOOXPVerifier *) verifier

Extends class OOOXPVerifierStage.

Definition at line 1 of file OOOXPVerifierStage.m.

123 :(OOOXPVerifier *)verifier
124{
125 _verifier = verifier; // Not retained.
126}

The documentation for this category was generated from the following files: