Oolite
Loading...
Searching...
No Matches
RouteElement Class Reference
Inheritance diagram for RouteElement:
Collaboration diagram for RouteElement:

Instance Methods

(OOSystemID) - parent
(OOSystemID) - location
(double) - cost
(double) - distance
(double) - time
(int) - jumps

Class Methods

(instancetype) + elementWithLocation:parent:cost:distance:time:jumps:

Private Attributes

OOSystemID _location
OOSystemID _parent
double _cost
double _distance
double _time
int _jumps

Detailed Description

Definition at line 145 of file Universe.m.

Method Documentation

◆ cost

- (double) cost

Definition at line 186 of file Universe.m.

187{
188 return _cost;
189}
double _cost
Definition Universe.m:148

References _cost, and cost.

Referenced by cost, elementWithLocation:parent:cost:distance:time:jumps:, and Universe::routeFromSystem:toSystem:optimizedBy:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distance

- (double) distance

Definition at line 190 of file Universe.m.

191{
192 return _distance;
193}
double _distance
Definition Universe.m:148

References _distance, and distance.

Referenced by distance, elementWithLocation:parent:cost:distance:time:jumps:, and Universe::routeFromSystem:toSystem:optimizedBy:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ elementWithLocation:parent:cost:distance:time:jumps:

+ (instancetype) elementWithLocation: (OOSystemID) location
parent: (OOSystemID) parent
cost: (double) cost
distance: (double) distance
time: (double) time
jumps: (int) jumps 

Definition at line 164 of file Universe.m.

165{
166 RouteElement* r = [[RouteElement alloc] init];
167
168 r->_location = location;
169 r->_parent = parent;
170 r->_cost = cost;
171 r->_distance = distance;
172 r->_time = time;
173 r->_jumps = jumps;
174
175 return [r autorelease];
176}
int16_t OOSystemID
Definition OOTypes.h:183
OOSystemID parent()
Definition Universe.m:178
OOSystemID _location
Definition Universe.m:147
double distance()
Definition Universe.m:190
OOSystemID _parent
Definition Universe.m:147
double _time
Definition Universe.m:148
OOSystemID location()
Definition Universe.m:182
double cost()
Definition Universe.m:186
double time()
Definition Universe.m:194
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque

References _cost, _distance, _jumps, _location, _parent, _time, cost, distance, jumps, location, parent, and time.

Referenced by Universe::routeFromSystem:toSystem:optimizedBy:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jumps

- (int) jumps

Definition at line 198 of file Universe.m.

199{
200 return _jumps;
201}

References _jumps, int(), and jumps.

Referenced by elementWithLocation:parent:cost:distance:time:jumps:, jumps, and Universe::routeFromSystem:toSystem:optimizedBy:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ location

- (OOSystemID) location

Definition at line 182 of file Universe.m.

183{
184 return _location;
185}

References _location, and location.

Referenced by elementWithLocation:parent:cost:distance:time:jumps:, location, and Universe::routeFromSystem:toSystem:optimizedBy:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parent

- (OOSystemID) parent

Definition at line 178 of file Universe.m.

179{
180 return _parent;
181}

References _parent, and parent.

Referenced by elementWithLocation:parent:cost:distance:time:jumps:, parent, and Universe::routeFromSystem:toSystem:optimizedBy:.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ time

- (double) time

Definition at line 194 of file Universe.m.

195{
196 return _time;
197}

References _time, and time.

Referenced by elementWithLocation:parent:cost:distance:time:jumps:, Universe::routeFromSystem:toSystem:optimizedBy:, and time.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _cost

- (double) _cost
private

Definition at line 148 of file Universe.m.

Referenced by cost, and elementWithLocation:parent:cost:distance:time:jumps:.

◆ _distance

- (double) _distance
private

Definition at line 148 of file Universe.m.

Referenced by distance, and elementWithLocation:parent:cost:distance:time:jumps:.

◆ _jumps

- (int) _jumps
private

Definition at line 149 of file Universe.m.

Referenced by elementWithLocation:parent:cost:distance:time:jumps:, and jumps.

◆ _location

- (OOSystemID) _location
private

Definition at line 147 of file Universe.m.

Referenced by elementWithLocation:parent:cost:distance:time:jumps:, and location.

◆ _parent

- (OOSystemID) _parent
private

Definition at line 147 of file Universe.m.

Referenced by elementWithLocation:parent:cost:distance:time:jumps:, and parent.

◆ _time

- (double) _time
private

Definition at line 148 of file Universe.m.

Referenced by elementWithLocation:parent:cost:distance:time:jumps:, and time.


The documentation for this class was generated from the following file: