Oolite 1.91.0.7677-250528-09ed63a
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
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 157 of file Universe.m.

Method Documentation

◆ cost

- (double) cost

Definition at line 193 of file Universe.m.

193{ return _cost; }
double _cost
Definition Universe.m:161

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 194 of file Universe.m.

194{ return _distance; }
double _distance
Definition Universe.m:161

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 177 of file Universe.m.

178{
179 RouteElement *r = [[RouteElement alloc] init];
180
181 r->_location = location;
182 r->_parent = parent;
183 r->_cost = cost;
184 r->_distance = distance;
185 r->_time = time;
186 r->_jumps = jumps;
187
188 return [r autorelease];
189}
int16_t OOSystemID
Definition OOTypes.h:211
OOSystemID parent()
Definition Universe.m:191
OOSystemID _location
Definition Universe.m:160
double distance()
Definition Universe.m:194
OOSystemID _parent
Definition Universe.m:160
double _time
Definition Universe.m:161
OOSystemID location()
Definition Universe.m:192
double cost()
Definition Universe.m:193
double time()
Definition Universe.m:195
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 196 of file Universe.m.

196{ return _jumps; }

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 192 of file Universe.m.

192{ return _location; }

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 191 of file Universe.m.

191{ return _parent; }

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 195 of file Universe.m.

195{ return _time; }

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 161 of file Universe.m.

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

◆ _distance

- (double) _distance
private

Definition at line 161 of file Universe.m.

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

◆ _jumps

- (int) _jumps
private

Definition at line 162 of file Universe.m.

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

◆ _location

- (OOSystemID) _location
private

Definition at line 160 of file Universe.m.

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

◆ _parent

- (OOSystemID) _parent
private

Definition at line 160 of file Universe.m.

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

◆ _time

- (double) _time
private

Definition at line 161 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: