mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 05:23:51 +00:00
1) Features - RaceCompetitorStatusType: New race competitor status type defined: F_CONFIRMED. Represents a competitor with a control passing registered for the last gate/mark that is accepted as the official result (Requested by Ugo Alvazzi, 26/04/2017) - WebSockets support: instead of using a TCP connection is possible to retrieve data using WebSockets (using the same protocol used by the HTML Viewer). The protocol is not fully implemented and it only has to be used for testing (Requested by Jorge Piera, 30/04/2017). - Use an asynchronous API: the dataserver implementation has been migrated to an asynchronous API that provides a better performance downloading replay data (the tests show that is 2.5 times faster). TracAPI has also adopted this new asynchronous interface but at this moment it continues using the synchronous approach (Requested by Jorge Piera, 03/05/2017) - Adding the method ISubscriberFactory.clean to release the objects in memory (Requested by André Borud, 01/06/2017) - Adding the method IPosition.isGPSTiming to know if the time of a position has been retrieved from a physical GPS device (Requested by Jérome Soussens, 21/06/2017) 2) Bugs - When a static control is updated, the IControlPointPositionListener.gotControlPointPosition event is not called if the consumer application is not registered to the IEventSubscriber (Reported by Axel Uhl, 18/06/2017) - The live delay sometimes is not propagated. The server always propagates the event but TracAPI can filter it if the IEventSubscriber is not being used or if it has not been correctly initialized using the right live-uri (Reported by Julian Mayland, 21/06/2017) Change-Id: I5c6b842268558d95491baf35db72f649ba61b032
955 lines
50 KiB
HTML
Executable File
955 lines
50 KiB
HTML
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (1.8.0_111) on Thu Jun 29 10:20:59 UTC 2017 -->
|
|
<title>AbstractModelTest</title>
|
|
<meta name="date" content="2017-06-29">
|
|
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
|
<script type="text/javascript" src="../../../../../script.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="AbstractModelTest";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li>Prev Class</li>
|
|
<li><a href="../../../../../com/tractrac/model/lib/api/IIdentifiable.html" title="interface in com.tractrac.model.lib.api"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../../index.html?com/tractrac/model/lib/api/AbstractModelTest.html" target="_top">Frames</a></li>
|
|
<li><a href="AbstractModelTest.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">com.tractrac.model.lib.api</div>
|
|
<h2 title="Class AbstractModelTest" class="title">Class AbstractModelTest</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>junit.framework.Assert</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>junit.framework.TestCase</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>com.tractrac.model.lib.api.AbstractModelTest</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd>junit.framework.Test</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>Direct Known Subclasses:</dt>
|
|
<dd><a href="../../../../../com/tractrac/subscription/lib/api/AbstractSubscriptionTest.html" title="class in com.tractrac.subscription.lib.api">AbstractSubscriptionTest</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public abstract class <span class="typeNameLabel">AbstractModelTest</span>
|
|
extends junit.framework.TestCase</pre>
|
|
<div class="block"><p>
|
|
Abstract class that can be inherited for the test classes. It has utility
|
|
methods to create mock objects that are used by the test classes in order to
|
|
create a model of objects for testing
|
|
</p></div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="http://en.wikipedia.org/wiki/Mock_object">Mock Object</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#AbstractModelTest--">AbstractModelTest</a></span>()</code> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addAttachment-com.tractrac.model.lib.api.attachment.IAttachable-com.tractrac.model.lib.api.attachment.IAttachmentKey-java.lang.Object-">addAttachment</a></span>(<a href="../../../../../com/tractrac/model/lib/api/attachment/IAttachable.html" title="interface in com.tractrac.model.lib.api.attachment">IAttachable</a> attachable,
|
|
<a href="../../../../../com/tractrac/model/lib/api/attachment/IAttachmentKey.html" title="interface in com.tractrac.model.lib.api.attachment">IAttachmentKey</a> attachmentKey,
|
|
java.lang.Object object)</code>
|
|
<div class="block">Add an attachment to an attachable object</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/event/ICompetitor.html" title="interface in com.tractrac.model.lib.api.event">ICompetitor</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addCompetitorToEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-">addCompetitorToEvent</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String competitorName)</code>
|
|
<div class="block">Add the competitor the the event</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/event/ICompetitor.html" title="interface in com.tractrac.model.lib.api.event">ICompetitor</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addCompetitorToEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-java.util.UUID-">addCompetitorToEvent</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String competitorName,
|
|
java.util.UUID competitorId)</code>
|
|
<div class="block">Add the competitor the the event</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/event/IRaceCompetitor.html" title="interface in com.tractrac.model.lib.api.event">IRaceCompetitor</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addCompetitorToRace-com.tractrac.model.lib.api.event.IRace-com.tractrac.model.lib.api.event.ICompetitor-">addCompetitorToRace</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
<a href="../../../../../com/tractrac/model/lib/api/event/ICompetitor.html" title="interface in com.tractrac.model.lib.api.event">ICompetitor</a> competitor)</code>
|
|
<div class="block">Add a competitor to a race.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/route/IControlPoint.html" title="interface in com.tractrac.model.lib.api.route">IControlPoint</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlPointToControl-com.tractrac.model.lib.api.route.IControl-double-double-long-">addControlPointToControl</a></span>(<a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a> control,
|
|
double lat,
|
|
double lon,
|
|
long timestamp)</code>
|
|
<div class="block">Adds a controlpoint to a control</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/route/IControlRoute.html" title="interface in com.tractrac.model.lib.api.route">IControlRoute</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlRouteToRace-com.tractrac.model.lib.api.event.IRace-">addControlRouteToRace</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race)</code>
|
|
<div class="block">Add a route to the race</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/route/IControlRoute.html" title="interface in com.tractrac.model.lib.api.route">IControlRoute</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlRouteToRace-com.tractrac.model.lib.api.event.IRace-java.lang.String-">addControlRouteToRace</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
java.lang.String metadata)</code>
|
|
<div class="block">Add a route to the race</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlToEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-">addControlToEvent</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name)</code>
|
|
<div class="block">Adds a control to an event</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlToEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-double-double-long-">addControlToEvent</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name,
|
|
double lat,
|
|
double lon,
|
|
long timestamp)</code>
|
|
<div class="block">Adds a control to an event with one control point</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlToEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-double-double-long-double-double-long-">addControlToEvent</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name,
|
|
double lat1,
|
|
double lon1,
|
|
long timestamp1,
|
|
double lat2,
|
|
double lon2,
|
|
long timestamp2)</code>
|
|
<div class="block">Adds a control to an event with two control points</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlToRace-com.tractrac.model.lib.api.event.IRace-com.tractrac.model.lib.api.route.IControl-">addControlToRace</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
<a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a> control)</code>
|
|
<div class="block">Adds a control to the race.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlToRace-com.tractrac.model.lib.api.event.IRace-java.lang.String-">addControlToRace</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
java.lang.String name)</code>
|
|
<div class="block">Adds a control to the race.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlToRace-com.tractrac.model.lib.api.event.IRace-java.lang.String-double-double-long-">addControlToRace</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
java.lang.String name,
|
|
double lat,
|
|
double lon,
|
|
long timestamp)</code>
|
|
<div class="block">Adds a control to the race.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/event/IRaceCompetitor.html" title="interface in com.tractrac.model.lib.api.event">IRaceCompetitor</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addRaceCompetitorToRace-com.tractrac.model.lib.api.event.IRace-java.lang.String-">addRaceCompetitorToRace</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
java.lang.String name)</code>
|
|
<div class="block">Adds a competitor to a race</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addRacetoEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-">addRacetoEvent</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name)</code>
|
|
<div class="block">Adds a race to an event.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addRacetoEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-java.util.UUID-">addRacetoEvent</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name,
|
|
java.util.UUID raceId)</code>
|
|
<div class="block">Adds a race to an event.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addRacetoEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-java.util.UUID-long-long-long-">addRacetoEvent</a></span>(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name,
|
|
java.util.UUID raceId,
|
|
long trackingStartTime,
|
|
long trackingEndTime,
|
|
long raceStartTime)</code>
|
|
<div class="block">Adds a race to an event.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/event/ICompetitor.html" title="interface in com.tractrac.model.lib.api.event">ICompetitor</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createCompetitor-java.lang.String-">createCompetitor</a></span>(java.lang.String competitorName)</code>
|
|
<div class="block">Create a competitor</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/event/ICompetitor.html" title="interface in com.tractrac.model.lib.api.event">ICompetitor</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createCompetitor-java.util.UUID-java.lang.String-">createCompetitor</a></span>(java.util.UUID uuid,
|
|
java.lang.String competitorName)</code>
|
|
<div class="block">Create a competitor</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createControl-java.lang.String-">createControl</a></span>(java.lang.String name)</code>
|
|
<div class="block">Create a control</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i20" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/route/IControlPoint.html" title="interface in com.tractrac.model.lib.api.route">IControlPoint</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createControlPoint-double-double-long-">createControlPoint</a></span>(double lat,
|
|
double lon,
|
|
long timestamp)</code>
|
|
<div class="block">Create a control point</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createEvent-java.lang.String-">createEvent</a></span>(java.lang.String name)</code>
|
|
<div class="block">Creates an event from a name.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createEvent-java.lang.String-java.util.UUID-">createEvent</a></span>(java.lang.String name,
|
|
java.util.UUID uuid)</code>
|
|
<div class="block">Creates an event from a name.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/tractrac/model/lib/api/data/IPosition.html" title="interface in com.tractrac.model.lib.api.data">IPosition</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createPosition-double-double-long-double-">createPosition</a></span>(double lat,
|
|
double lon,
|
|
long timestamp,
|
|
double m)</code>
|
|
<div class="block">Create a position</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods.inherited.from.class.junit.framework.TestCase">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class junit.framework.TestCase</h3>
|
|
<code>assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString</code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="AbstractModelTest--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>AbstractModelTest</h4>
|
|
<pre>public AbstractModelTest()</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="createEvent-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createEvent</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> createEvent(java.lang.String name)</pre>
|
|
<div class="block">Creates an event from a name. This event contains an empty list of races
|
|
and an empty list of controls</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - the name of the event</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>an event</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="createEvent-java.lang.String-java.util.UUID-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createEvent</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> createEvent(java.lang.String name,
|
|
java.util.UUID uuid)</pre>
|
|
<div class="block">Creates an event from a name. This event contains an empty list of races
|
|
and an empty list of controls.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - the name of the event</dd>
|
|
<dd><code>uuid</code> - the uuid of the event</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>an event</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addAttachment-com.tractrac.model.lib.api.attachment.IAttachable-com.tractrac.model.lib.api.attachment.IAttachmentKey-java.lang.Object-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addAttachment</h4>
|
|
<pre>public void addAttachment(<a href="../../../../../com/tractrac/model/lib/api/attachment/IAttachable.html" title="interface in com.tractrac.model.lib.api.attachment">IAttachable</a> attachable,
|
|
<a href="../../../../../com/tractrac/model/lib/api/attachment/IAttachmentKey.html" title="interface in com.tractrac.model.lib.api.attachment">IAttachmentKey</a> attachmentKey,
|
|
java.lang.Object object)</pre>
|
|
<div class="block">Add an attachment to an attachable object</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>attachable</code> - the attachable object</dd>
|
|
<dd><code>attachmentKey</code> - the attachment key</dd>
|
|
<dd><code>object</code> - the object to attach</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addRacetoEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addRacetoEvent</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> addRacetoEvent(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name)</pre>
|
|
<div class="block">Adds a race to an event. The race will contains an empty list of
|
|
competitors.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>event</code> - the event</dd>
|
|
<dd><code>name</code> - the name of the race</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the created race</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addRacetoEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-java.util.UUID-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addRacetoEvent</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> addRacetoEvent(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name,
|
|
java.util.UUID raceId)</pre>
|
|
<div class="block">Adds a race to an event. The race will contains an empty list of
|
|
competitors.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>event</code> - the event</dd>
|
|
<dd><code>name</code> - the name of the race</dd>
|
|
<dd><code>raceId</code> - the uuid of the race</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the created race</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addRacetoEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-java.util.UUID-long-long-long-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addRacetoEvent</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> addRacetoEvent(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name,
|
|
java.util.UUID raceId,
|
|
long trackingStartTime,
|
|
long trackingEndTime,
|
|
long raceStartTime)</pre>
|
|
<div class="block">Adds a race to an event. The race will contains an empty list of
|
|
competitors.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>event</code> - the event</dd>
|
|
<dd><code>name</code> - the name of the race</dd>
|
|
<dd><code>raceId</code> - the uuid of the race</dd>
|
|
<dd><code>trackingStartTime</code> - the tracking start time</dd>
|
|
<dd><code>trackingEndTime</code> - the tracking end time</dd>
|
|
<dd><code>raceStartTime</code> - the race start time</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the created race</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addCompetitorToRace-com.tractrac.model.lib.api.event.IRace-com.tractrac.model.lib.api.event.ICompetitor-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addCompetitorToRace</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/event/IRaceCompetitor.html" title="interface in com.tractrac.model.lib.api.event">IRaceCompetitor</a> addCompetitorToRace(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
<a href="../../../../../com/tractrac/model/lib/api/event/ICompetitor.html" title="interface in com.tractrac.model.lib.api.event">ICompetitor</a> competitor)</pre>
|
|
<div class="block">Add a competitor to a race. The competitor will be attached to the first
|
|
route</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>race</code> - the race</dd>
|
|
<dd><code>competitor</code> - the competitor to add</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>a race competitor</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addCompetitorToEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addCompetitorToEvent</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/event/ICompetitor.html" title="interface in com.tractrac.model.lib.api.event">ICompetitor</a> addCompetitorToEvent(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String competitorName)</pre>
|
|
<div class="block">Add the competitor the the event</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>event</code> - the event</dd>
|
|
<dd><code>competitorName</code> - the competitor name</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the competitor</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addCompetitorToEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-java.util.UUID-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addCompetitorToEvent</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/event/ICompetitor.html" title="interface in com.tractrac.model.lib.api.event">ICompetitor</a> addCompetitorToEvent(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String competitorName,
|
|
java.util.UUID competitorId)</pre>
|
|
<div class="block">Add the competitor the the event</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>event</code> - the event</dd>
|
|
<dd><code>competitorName</code> - the competitor name</dd>
|
|
<dd><code>competitorId</code> - the competitor id</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the competitor</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="createCompetitor-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createCompetitor</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/event/ICompetitor.html" title="interface in com.tractrac.model.lib.api.event">ICompetitor</a> createCompetitor(java.lang.String competitorName)</pre>
|
|
<div class="block">Create a competitor</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>competitorName</code> - the competitor name</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the competitor</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="createCompetitor-java.util.UUID-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createCompetitor</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/event/ICompetitor.html" title="interface in com.tractrac.model.lib.api.event">ICompetitor</a> createCompetitor(java.util.UUID uuid,
|
|
java.lang.String competitorName)</pre>
|
|
<div class="block">Create a competitor</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>uuid</code> - the identifier</dd>
|
|
<dd><code>competitorName</code> - the competitor name</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the competitor</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addRaceCompetitorToRace-com.tractrac.model.lib.api.event.IRace-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addRaceCompetitorToRace</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/event/IRaceCompetitor.html" title="interface in com.tractrac.model.lib.api.event">IRaceCompetitor</a> addRaceCompetitorToRace(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
java.lang.String name)</pre>
|
|
<div class="block">Adds a competitor to a race</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>race</code> - the race</dd>
|
|
<dd><code>name</code> - the name of the competitor</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the created competitor</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addControlToEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addControlToEvent</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a> addControlToEvent(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name)</pre>
|
|
<div class="block">Adds a control to an event</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>event</code> - the event</dd>
|
|
<dd><code>name</code> - the name of the control</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the created control</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addControlPointToControl-com.tractrac.model.lib.api.route.IControl-double-double-long-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addControlPointToControl</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/route/IControlPoint.html" title="interface in com.tractrac.model.lib.api.route">IControlPoint</a> addControlPointToControl(<a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a> control,
|
|
double lat,
|
|
double lon,
|
|
long timestamp)</pre>
|
|
<div class="block">Adds a controlpoint to a control</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>control</code> - the control</dd>
|
|
<dd><code>lat</code> - the latitude value of the control point</dd>
|
|
<dd><code>lon</code> - the longitude value of the control point</dd>
|
|
<dd><code>timestamp</code> - the timestamp of the control point</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the created control point</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addControlToEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-double-double-long-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addControlToEvent</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a> addControlToEvent(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name,
|
|
double lat,
|
|
double lon,
|
|
long timestamp)</pre>
|
|
<div class="block">Adds a control to an event with one control point</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>event</code> - the event</dd>
|
|
<dd><code>name</code> - the name of the control</dd>
|
|
<dd><code>lat</code> - the latitude value of the first control point</dd>
|
|
<dd><code>lon</code> - the longitude value of the first control point</dd>
|
|
<dd><code>timestamp</code> - the timestamp of the first control point</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the created control</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addControlToEvent-com.tractrac.model.lib.api.event.IEvent-java.lang.String-double-double-long-double-double-long-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addControlToEvent</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a> addControlToEvent(<a href="../../../../../com/tractrac/model/lib/api/event/IEvent.html" title="interface in com.tractrac.model.lib.api.event">IEvent</a> event,
|
|
java.lang.String name,
|
|
double lat1,
|
|
double lon1,
|
|
long timestamp1,
|
|
double lat2,
|
|
double lon2,
|
|
long timestamp2)</pre>
|
|
<div class="block">Adds a control to an event with two control points</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>event</code> - the event</dd>
|
|
<dd><code>name</code> - the name of the control</dd>
|
|
<dd><code>lat1</code> - the latitude value of the first control point</dd>
|
|
<dd><code>lon1</code> - the longitude value of the first control point</dd>
|
|
<dd><code>timestamp1</code> - the timestamp of the second first point</dd>
|
|
<dd><code>lat2</code> - the latitude value of the second control point</dd>
|
|
<dd><code>lon2</code> - the longitude value of the second control point</dd>
|
|
<dd><code>timestamp2</code> - the timestamp of the first second point</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the created control</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="createControl-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createControl</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a> createControl(java.lang.String name)</pre>
|
|
<div class="block">Create a control</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - the name of the control</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the control</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="createControlPoint-double-double-long-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createControlPoint</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/route/IControlPoint.html" title="interface in com.tractrac.model.lib.api.route">IControlPoint</a> createControlPoint(double lat,
|
|
double lon,
|
|
long timestamp)</pre>
|
|
<div class="block">Create a control point</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>lat</code> - the latitude value of the control point</dd>
|
|
<dd><code>lon</code> - the longitude value of the control point</dd>
|
|
<dd><code>timestamp</code> - the timestamp of the control point</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the control point</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="createPosition-double-double-long-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createPosition</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/data/IPosition.html" title="interface in com.tractrac.model.lib.api.data">IPosition</a> createPosition(double lat,
|
|
double lon,
|
|
long timestamp,
|
|
double m)</pre>
|
|
<div class="block">Create a position</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>lat</code> - the latitude value</dd>
|
|
<dd><code>lon</code> - the longitude value</dd>
|
|
<dd><code>timestamp</code> - the timestamp</dd>
|
|
<dd><code>m</code> - the m coordinate</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the position</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addControlToRace-com.tractrac.model.lib.api.event.IRace-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addControlToRace</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a> addControlToRace(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
java.lang.String name)</pre>
|
|
<div class="block">Adds a control to the race. This method also adds the control in the event</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>race</code> - the race</dd>
|
|
<dd><code>name</code> - the name of the control</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the created control</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addControlToRace-com.tractrac.model.lib.api.event.IRace-com.tractrac.model.lib.api.route.IControl-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addControlToRace</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a> addControlToRace(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
<a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a> control)</pre>
|
|
<div class="block">Adds a control to the race.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>race</code> - the race</dd>
|
|
<dd><code>control</code> - the control</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the created control</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addControlToRace-com.tractrac.model.lib.api.event.IRace-java.lang.String-double-double-long-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addControlToRace</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/route/IControl.html" title="interface in com.tractrac.model.lib.api.route">IControl</a> addControlToRace(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
java.lang.String name,
|
|
double lat,
|
|
double lon,
|
|
long timestamp)</pre>
|
|
<div class="block">Adds a control to the race. This method also adds the control in the event</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>race</code> - the race</dd>
|
|
<dd><code>name</code> - the name of the control</dd>
|
|
<dd><code>lat</code> - the latitude value of the control</dd>
|
|
<dd><code>lon</code> - the longitude value of the control</dd>
|
|
<dd><code>timestamp</code> - the timestamp of the control</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the created control</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addControlRouteToRace-com.tractrac.model.lib.api.event.IRace-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addControlRouteToRace</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/route/IControlRoute.html" title="interface in com.tractrac.model.lib.api.route">IControlRoute</a> addControlRouteToRace(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race)</pre>
|
|
<div class="block">Add a route to the race</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>race</code> - the race</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the control route</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addControlRouteToRace-com.tractrac.model.lib.api.event.IRace-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>addControlRouteToRace</h4>
|
|
<pre>public <a href="../../../../../com/tractrac/model/lib/api/route/IControlRoute.html" title="interface in com.tractrac.model.lib.api.route">IControlRoute</a> addControlRouteToRace(<a href="../../../../../com/tractrac/model/lib/api/event/IRace.html" title="interface in com.tractrac.model.lib.api.event">IRace</a> race,
|
|
java.lang.String metadata)</pre>
|
|
<div class="block">Add a route to the race</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>race</code> - the race</dd>
|
|
<dd><code>metadata</code> - the metadata</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the control route</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li>Prev Class</li>
|
|
<li><a href="../../../../../com/tractrac/model/lib/api/IIdentifiable.html" title="interface in com.tractrac.model.lib.api"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../../index.html?com/tractrac/model/lib/api/AbstractModelTest.html" target="_top">Frames</a></li>
|
|
<li><a href="AbstractModelTest.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|