mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
778 lines
46 KiB
HTML
778 lines
46 KiB
HTML
<!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 (version 1.7.0_55) on Wed Nov 19 15:29:15 UTC 2014 -->
|
|
<title>AbstractModelTest</title>
|
|
<meta name="date" content="2014-11-19">
|
|
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="AbstractModelTest";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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="class-use/AbstractModelTest.html">Use</a></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="strong">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="strong">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="strong">Author:</span></dt>
|
|
<dd><a href="mailto:jorge@tractrac.dk">Jorge Piera Llodrá</a></dd>
|
|
<dt><span class="strong">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="overviewSummary" 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#AbstractModelTest()">AbstractModelTest</a></strong>()</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="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><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></strong>(<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 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addCompetitorToEvent(com.tractrac.model.lib.api.event.IEvent, java.lang.String)">addCompetitorToEvent</a></strong>(<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 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><strong><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></strong>(<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 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><strong><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></strong>(<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 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlPointToControl(com.tractrac.model.lib.api.route.IControl, double, double, long)">addControlPointToControl</a></strong>(<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 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlRouteToRace(com.tractrac.model.lib.api.event.IRace)">addControlRouteToRace</a></strong>(<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 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlRouteToRace(com.tractrac.model.lib.api.event.IRace, java.lang.String)">addControlRouteToRace</a></strong>(<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 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlToEvent(com.tractrac.model.lib.api.event.IEvent, java.lang.String)">addControlToEvent</a></strong>(<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 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><strong><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></strong>(<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 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><strong><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></strong>(<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 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><strong><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></strong>(<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 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addControlToRace(com.tractrac.model.lib.api.event.IRace, java.lang.String)">addControlToRace</a></strong>(<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 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><strong><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></strong>(<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 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addRaceCompetitorToRace(com.tractrac.model.lib.api.event.IRace, java.lang.String)">addRaceCompetitorToRace</a></strong>(<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 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#addRacetoEvent(com.tractrac.model.lib.api.event.IEvent, java.lang.String)">addRacetoEvent</a></strong>(<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 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><strong><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></strong>(<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 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><strong><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></strong>(<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 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createCompetitor(java.lang.String)">createCompetitor</a></strong>(java.lang.String competitorName)</code>
|
|
<div class="block">Create a competitor</div>
|
|
</td>
|
|
</tr>
|
|
<tr 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createCompetitor(java.util.UUID, java.lang.String)">createCompetitor</a></strong>(java.util.UUID uuid,
|
|
java.lang.String competitorName)</code>
|
|
<div class="block">Create a competitor</div>
|
|
</td>
|
|
</tr>
|
|
<tr 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createControl(java.lang.String)">createControl</a></strong>(java.lang.String name)</code>
|
|
<div class="block">Create a control</div>
|
|
</td>
|
|
</tr>
|
|
<tr 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createControlPoint(double, double, long)">createControlPoint</a></strong>(double lat,
|
|
double lon,
|
|
long timestamp)</code>
|
|
<div class="block">Create a control point</div>
|
|
</td>
|
|
</tr>
|
|
<tr 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createEvent(java.lang.String)">createEvent</a></strong>(java.lang.String name)</code>
|
|
<div class="block">Creates an event from a name.</div>
|
|
</td>
|
|
</tr>
|
|
<tr 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><strong><a href="../../../../../com/tractrac/model/lib/api/AbstractModelTest.html#createEvent(java.lang.String, java.util.UUID)">createEvent</a></strong>(java.lang.String name,
|
|
java.util.UUID uuid)</code>
|
|
<div class="block">Creates an event from a name.</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, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, 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>equals, 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="strong">Parameters:</span></dt><dd><code>name</code> - the name of the event</dd>
|
|
<dt><span class="strong">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="strong">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="strong">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="strong">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="strong">Parameters:</span></dt><dd><code>event</code> - the event</dd><dd><code>name</code> - the name of the race</dd>
|
|
<dt><span class="strong">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="strong">Parameters:</span></dt><dd><code>event</code> - the event</dd><dd><code>name</code> - the name of the race</dd><dd><code>UUID</code> - the uuid of the race</dd>
|
|
<dt><span class="strong">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="strong">Parameters:</span></dt><dd><code>event</code> - the event</dd><dd><code>name</code> - the name of the race</dd><dd><code>UUID</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="strong">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="strong">Parameters:</span></dt><dd><code>race</code> - the race</dd><dd><code>competitor</code> - the competitor to add</dd>
|
|
<dt><span class="strong">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="strong">Parameters:</span></dt><dd><code>event</code> - the event</dd><dd><code>competitorName</code> - the competitor name</dd>
|
|
<dt><span class="strong">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="strong">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="strong">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="strong">Parameters:</span></dt><dd><code>name</code> - the competitor name</dd>
|
|
<dt><span class="strong">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="strong">Parameters:</span></dt><dd><code>uuid</code> - the identifier</dd><dd><code>name</code> - the competitor name</dd>
|
|
<dt><span class="strong">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="strong">Parameters:</span></dt><dd><code>race</code> - the race</dd><dd><code>name</code> - the name of the competitor</dd>
|
|
<dt><span class="strong">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="strong">Parameters:</span></dt><dd><code>event</code> - the event</dd><dd><code>name</code> - the name of the control</dd>
|
|
<dt><span class="strong">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="strong">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="strong">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="strong">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="strong">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="strong">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="strong">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="strong">Parameters:</span></dt><dd><code>name</code> - the name of the control</dd>
|
|
<dt><span class="strong">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="strong">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="strong">Returns:</span></dt><dd>the control point</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="strong">Parameters:</span></dt><dd><code>race</code> - the race</dd><dd><code>name</code> - the name of the control</dd>
|
|
<dt><span class="strong">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="strong">Parameters:</span></dt><dd><code>race</code> - the race</dd><dd><code>control</code> - the control</dd>
|
|
<dt><span class="strong">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="strong">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="strong">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="strong">Parameters:</span></dt><dd><code>race</code> - the race</dd>
|
|
<dt><span class="strong">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="strong">Parameters:</span></dt><dd><code>race</code> - the race</dd><dd><code>metadata</code> - the metadata</dd>
|
|
<dt><span class="strong">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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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="class-use/AbstractModelTest.html">Use</a></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="strong">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>
|