Schreibfehler verbessert und fehlende Parameter ergänzt
parent
a728c8e748
commit
116ecb2dc3
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>C3PO</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -79,11 +79,6 @@ loadScripts(document, 'script');</script>
|
|||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>Record Components:</dt>
|
||||
<dd><code>name</code> - wie der Roboter heißen soll.</dd>
|
||||
<dd><code>id</code> - eine zufällig vergebene Zahl zwischen 9999-19999.</dd>
|
||||
</dl>
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="../tpe/exceptions/roboter/Robot.html" title="interface in tpe.exceptions.roboter">Robot</a></code>, <code><a href="../tpe/exceptions/roboter/RobotControl.html" title="interface in tpe.exceptions.roboter">RobotControl</a></code>, <code><a href="../tpe/exceptions/roboter/RobotInstructions.html" title="interface in tpe.exceptions.roboter">RobotInstructions</a></code></dd>
|
||||
</dl>
|
||||
|
@ -159,6 +154,11 @@ loadScripts(document, 'script');</script>
|
|||
<h3>C3PO</h3>
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">C3PO</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name,
|
||||
int id)</span></div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>name</code> - wie der Roboter heißen soll.</dd>
|
||||
<dd><code>id</code> - eine zufällig vergebene Zahl zwischen 9999-19999.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -215,7 +215,7 @@ loadScripts(document, 'script');</script>
|
|||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="see-list">
|
||||
<li><code>RobotInstructions#think(int[])</code></li>
|
||||
<li><a href="../tpe/exceptions/roboter/RobotInstructions.html#think(int%5B%5D)"><code>RobotInstructions.think(int[])</code></a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Nexus6</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -85,8 +85,8 @@ loadScripts(document, 'script');</script>
|
|||
<hr>
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Nexus6</span>
|
||||
<span class="extends-implements">extends <a href="Roboter.html" title="class in Domäne">Roboter</a></span></div>
|
||||
<div class="block">Die Klasse Nexus6 hat ein einziges Objekt namens Pris Pris ist defekt und hat
|
||||
immer die gleiche id:19281982</div>
|
||||
<div class="block">Die Klasse Nexus6 generiert ein einzigen Roboter namens Pris. Pris ist defekt
|
||||
und hat immer die gleiche Id:19281982</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
|
@ -109,7 +109,8 @@ loadScripts(document, 'script');</script>
|
|||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="Nexus6.html" title="class in Domäne">Nexus6</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getInstance()" class="member-name-link">getInstance</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||||
<div class="block">Falls es noch kein Objekt gibt wird eins erzeugt.</div>
|
||||
<div class="block">Instantziiert ein neues Nexus6 Objekt falls bisher keins erzeugt wurde, und
|
||||
gibt je nachdem entweder das bestehende oder neu erzeugte Objekt zurück.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="RobotType.html" title="enum class in Domäne">RobotType</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getRobotType()" class="member-name-link">getRobotType</a>()</code></div>
|
||||
|
@ -160,11 +161,11 @@ loadScripts(document, 'script');</script>
|
|||
<section class="detail" id="getInstance()">
|
||||
<h3>getInstance</h3>
|
||||
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="Nexus6.html" title="class in Domäne">Nexus6</a></span> <span class="element-name">getInstance</span>()</div>
|
||||
<div class="block">Falls es noch kein Objekt gibt wird eins erzeugt. Besteht jedoch schon ein
|
||||
Objekt, so wird das Objekt zurückgegeben und kein neues erzeugt.</div>
|
||||
<div class="block">Instantziiert ein neues Nexus6 Objekt falls bisher keins erzeugt wurde, und
|
||||
gibt je nachdem entweder das bestehende oder neu erzeugte Objekt zurück.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>Pris</dd>
|
||||
<dd>Roboter Pris</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>R2D2</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -79,10 +79,6 @@ loadScripts(document, 'script');</script>
|
|||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>Record Components:</dt>
|
||||
<dd><code>name</code> - wie der Roboter heißen soll.</dd>
|
||||
</dl>
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="../tpe/exceptions/roboter/Robot.html" title="interface in tpe.exceptions.roboter">Robot</a></code>, <code><a href="../tpe/exceptions/roboter/RobotControl.html" title="interface in tpe.exceptions.roboter">RobotControl</a></code>, <code><a href="../tpe/exceptions/roboter/RobotInstructions.html" title="interface in tpe.exceptions.roboter">RobotInstructions</a></code></dd>
|
||||
</dl>
|
||||
|
@ -158,6 +154,11 @@ loadScripts(document, 'script');</script>
|
|||
<h3>R2D2</h3>
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">R2D2</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name,
|
||||
int id)</span></div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>name</code> - Name des Roboters.</dd>
|
||||
<dd><code>id</code> - Eine zufällig vergebene Zahl zwischen 0-9999.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -192,7 +193,7 @@ loadScripts(document, 'script');</script>
|
|||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="see-list">
|
||||
<li><code>RobotInstructions#think(int[])</code></li>
|
||||
<li><a href="../tpe/exceptions/roboter/RobotInstructions.html#think(int%5B%5D)"><code>RobotInstructions.think(int[])</code></a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>RobotFactory</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>RobotType</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Roboter</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -212,7 +212,8 @@ implements <a href="../tpe/exceptions/roboter/Robot.html" title="interface in tp
|
|||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="see-list-long">
|
||||
<li><code>der Zustand wird beim aufrufen zwischen true und false getauscht.</code></li>
|
||||
<li><a href="../tpe/exceptions/roboter/RobotControl.html#triggerPowerSwitch()"><code>der Zustand wird beim aufrufen zwischen
|
||||
true und false getauscht.</code></a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -276,7 +277,8 @@ implements <a href="../tpe/exceptions/roboter/Robot.html" title="interface in tp
|
|||
<dt>Returns:</dt>
|
||||
<dd>Zahlen als String</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code>zahlen[]</code> - die Zahl 42 enthält, wird die RobotMagicValueException geworfen</dd>
|
||||
<dd><code>zahlen[]</code> - die Zahl 42 enthält, wird die RobotMagicValueException
|
||||
geworfen</dd>
|
||||
<dd><code><a href="../tpe/exceptions/roboter/exceptions/RobotException.html" title="class in tpe.exceptions.roboter.exceptions">RobotException</a></code> - wenn der Roboter in einem ungültigen Zustand ist,
|
||||
oder das Array nicht seinen Vorstellungen entspricht.</dd>
|
||||
<dt>See Also:</dt>
|
||||
|
@ -309,7 +311,7 @@ implements <a href="../tpe/exceptions/roboter/Robot.html" title="interface in tp
|
|||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="see-list">
|
||||
<li><code>RobotInstructions#think(int[])</code></li>
|
||||
<li><a href="../tpe/exceptions/roboter/RobotInstructions.html#think(int%5B%5D)"><code>RobotInstructions.think(int[])</code></a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Class Domäne.C3PO</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Class Domäne.Nexus6</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -71,7 +71,8 @@ loadScripts(document, 'script');</script>
|
|||
<div class="col-first even-row-color"><code>static <a href="../Nexus6.html" title="class in Domäne">Nexus6</a></code></div>
|
||||
<div class="col-second even-row-color"><span class="type-name-label">Nexus6.</span><code><a href="../Nexus6.html#getInstance()" class="member-name-link">getInstance</a>()</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Falls es noch kein Objekt gibt wird eins erzeugt.</div>
|
||||
<div class="block">Instantziiert ein neues Nexus6 Objekt falls bisher keins erzeugt wurde, und
|
||||
gibt je nachdem entweder das bestehende oder neu erzeugte Objekt zurück.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Class Domäne.R2D2</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Class Domäne.RobotFactory</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Enum Class Domäne.RobotType</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Class Domäne.Roboter</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -76,8 +76,7 @@ loadScripts(document, 'script');</script>
|
|||
<div class="col-first odd-row-color"><code>class </code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="../Nexus6.html" class="type-name-link" title="class in Domäne">Nexus6</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Die Klasse Nexus6 hat ein einziges Objekt namens Pris Pris ist defekt und hat
|
||||
immer die gleiche id:19281982</div>
|
||||
<div class="block">Die Klasse Nexus6 generiert ein einzigen Roboter namens Pris.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code>class </code></div>
|
||||
<div class="col-second even-row-color"><code><a href="../R2D2.html" class="type-name-link" title="class in Domäne">R2D2</a></code></div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Domäne</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -80,8 +80,7 @@ loadScripts(document, 'script');</script>
|
|||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="Nexus6.html" title="class in Domäne">Nexus6</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Die Klasse Nexus6 hat ein einziges Objekt namens Pris Pris ist defekt und hat
|
||||
immer die gleiche id:19281982</div>
|
||||
<div class="block">Die Klasse Nexus6 generiert ein einzigen Roboter namens Pris.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="R2D2.html" title="class in Domäne">R2D2</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Domäne Class Hierarchy</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Package Domäne</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -68,8 +68,7 @@ loadScripts(document, 'script');</script>
|
|||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><a href="class-use/Nexus6.html#Dom%C3%A4ne">Nexus6</a></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Die Klasse Nexus6 hat ein einziges Objekt namens Pris Pris ist defekt und hat
|
||||
immer die gleiche id:19281982</div>
|
||||
<div class="block">Die Klasse Nexus6 generiert ein einzigen Roboter namens Pris.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><a href="class-use/Roboter.html#Dom%C3%A4ne">Roboter</a></div>
|
||||
<div class="col-last odd-row-color">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>All Classes and Interfaces</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -77,8 +77,7 @@ loadScripts(document, 'script');</script>
|
|||
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2"> </div>
|
||||
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="Dom%C3%A4ne/Nexus6.html" title="class in Domäne">Nexus6</a></div>
|
||||
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
|
||||
<div class="block">Die Klasse Nexus6 hat ein einziges Objekt namens Pris Pris ist defekt und hat
|
||||
immer die gleiche id:19281982</div>
|
||||
<div class="block">Die Klasse Nexus6 generiert ein einzigen Roboter namens Pris.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="Dom%C3%A4ne/R2D2.html" title="class in Domäne">R2D2</a></div>
|
||||
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>All Packages</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Factorysystem</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -121,7 +121,7 @@ loadScripts(document, 'script');</script>
|
|||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#istDieserRoboterDa(int)" class="member-name-link">istDieserRoboterDa</a><wbr>(int id)</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Um zu überprüfen ob der Roboter mit dieser Id existiert.</div>
|
||||
<div class="block">Überprüft ob der Roboter mit dieser Id im Lager existiert.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#roboterAnlegen(java.lang.String,int)" class="member-name-link">roboterAnlegen</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name,
|
||||
|
@ -224,12 +224,12 @@ loadScripts(document, 'script');</script>
|
|||
<section class="detail" id="schalterBetätigen(int)">
|
||||
<h3>schalterBetätigen</h3>
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name">schalterBetätigen</span><wbr><span class="parameters">(int id)</span></div>
|
||||
<div class="block">Schlatet den Schalter vom Roboter auf An oder Aus.
|
||||
Pris bleibt Ausgeschaltet.</div>
|
||||
<div class="block">Schlatet den Schalter vom Roboter auf An oder Aus. Pris bleibt Ausgeschaltet.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>id</code> - </dd>
|
||||
<dd><code>id</code> - Id des Roboters</dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>Gibt zurück ob der Roboter ein- oder ausgeschaltet wurde.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
@ -265,13 +265,12 @@ loadScripts(document, 'script');</script>
|
|||
<section class="detail" id="roboterDaten(int)">
|
||||
<h3>roboterDaten</h3>
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">roboterDaten</span><wbr><span class="parameters">(int id)</span></div>
|
||||
<div class="block">Die Daten vom Roboter werden gelesen und übergeben.
|
||||
RoboterTyp, Name und Seriennummer.</div>
|
||||
<div class="block">Die Daten vom Roboter werden gelesen und übergeben.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>id</code> - </dd>
|
||||
<dd><code>id</code> - Id des Roboters</dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>String</dd>
|
||||
<dd>String RoboterTyp, Name und Seriennummer.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
@ -279,12 +278,13 @@ loadScripts(document, 'script');</script>
|
|||
<section class="detail" id="istDieserRoboterDa(int)">
|
||||
<h3>istDieserRoboterDa</h3>
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name">istDieserRoboterDa</span><wbr><span class="parameters">(int id)</span></div>
|
||||
<div class="block">Um zu überprüfen ob der Roboter mit dieser Id existiert.</div>
|
||||
<div class="block">Überprüft ob der Roboter mit dieser Id im Lager existiert.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>id</code> - Id des Roboters</dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>boolean übergibt ihn weiter
|
||||
True bedeutet, dass der Roboter im Lager existiert.
|
||||
False bedeutet, dass der Roboter nicht im Lager existiert.</dd>
|
||||
<dd>boolean true oder false, je nachdem ob der Roboter im Lager
|
||||
existiert.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</li>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Class facade.Factorysystem</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>facade</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>facade Class Hierarchy</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Package facade</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>API Help</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>A-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>R-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>S-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>T-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>U-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>V-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Z-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>C-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>D-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>F-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>G-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -68,7 +68,8 @@ loadScripts(document, 'script');</script>
|
|||
</dd>
|
||||
<dt><a href="../Dom%C3%A4ne/Nexus6.html#getInstance()" class="member-name-link">getInstance()</a> - Static method in class Domäne.<a href="../Dom%C3%A4ne/Nexus6.html" title="class in Domäne">Nexus6</a></dt>
|
||||
<dd>
|
||||
<div class="block">Falls es noch kein Objekt gibt wird eins erzeugt.</div>
|
||||
<div class="block">Instantziiert ein neues Nexus6 Objekt falls bisher keins erzeugt wurde, und
|
||||
gibt je nachdem entweder das bestehende oder neu erzeugte Objekt zurück.</div>
|
||||
</dd>
|
||||
<dt><a href="../Dom%C3%A4ne/Roboter.html#getLastException()" class="member-name-link">getLastException()</a> - Method in class Domäne.<a href="../Dom%C3%A4ne/Roboter.html" title="class in Domäne">Roboter</a></dt>
|
||||
<dd> </dd>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>I-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -68,7 +68,7 @@ loadScripts(document, 'script');</script>
|
|||
</dd>
|
||||
<dt><a href="../facade/Factorysystem.html#istDieserRoboterDa(int)" class="member-name-link">istDieserRoboterDa(int)</a> - Method in class facade.<a href="../facade/Factorysystem.html" title="class in facade">Factorysystem</a></dt>
|
||||
<dd>
|
||||
<div class="block">Um zu überprüfen ob der Roboter mit dieser Id existiert.</div>
|
||||
<div class="block">Überprüft ob der Roboter mit dieser Id im Lager existiert.</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">F</a> <a href="index-5.html">G</a> <a href="index-6.html">I</a> <a href="index-7.html">L</a> <a href="index-8.html">M</a> <a href="index-9.html">N</a> <a href="index-10.html">R</a> <a href="index-11.html">S</a> <a href="index-12.html">T</a> <a href="index-13.html">U</a> <a href="index-14.html">V</a> <a href="index-15.html">Z</a> <br><a href="../allclasses-index.html">All Classes and Interfaces</a><span class="vertical-separator">|</span><a href="../allpackages-index.html">All Packages</a><span class="vertical-separator">|</span><a href="../serialized-form.html">Serialized Form</a></main>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>L-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>M-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>N-Index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -56,8 +56,7 @@ loadScripts(document, 'script');</script>
|
|||
<dl class="index">
|
||||
<dt><a href="../Dom%C3%A4ne/Nexus6.html" class="type-name-link" title="class in Domäne">Nexus6</a> - Class in <a href="../Dom%C3%A4ne/package-summary.html">Domäne</a></dt>
|
||||
<dd>
|
||||
<div class="block">Die Klasse Nexus6 hat ein einziges Objekt namens Pris Pris ist defekt und hat
|
||||
immer die gleiche id:19281982</div>
|
||||
<div class="block">Die Klasse Nexus6 generiert ein einzigen Roboter namens Pris.</div>
|
||||
</dd>
|
||||
<dt><a href="../Dom%C3%A4ne/RobotType.html#NEXUS6" class="member-name-link">NEXUS6</a> - Enum constant in enum class Domäne.<a href="../Dom%C3%A4ne/RobotType.html" title="enum class in Domäne">RobotType</a></dt>
|
||||
<dd> </dd>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Overview</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Main</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Class main.Main</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>main</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>main Class Hierarchy</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Package main</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Generated Documentation (Untitled)</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Class Hierarchy</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Serialized Form</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Robot</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>RobotControl</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>RobotInstructions</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Interface tpe.exceptions.roboter.Robot</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -76,8 +76,7 @@ loadScripts(document, 'script');</script>
|
|||
<div class="col-first odd-row-color"><code>class </code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="../../../../Dom%C3%A4ne/Nexus6.html" class="type-name-link" title="class in Domäne">Nexus6</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Die Klasse Nexus6 hat ein einziges Objekt namens Pris Pris ist defekt und hat
|
||||
immer die gleiche id:19281982</div>
|
||||
<div class="block">Die Klasse Nexus6 generiert ein einzigen Roboter namens Pris.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code>class </code></div>
|
||||
<div class="col-second even-row-color"><code><a href="../../../../Dom%C3%A4ne/R2D2.html" class="type-name-link" title="class in Domäne">R2D2</a></code></div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Interface tpe.exceptions.roboter.RobotControl</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -78,8 +78,7 @@ loadScripts(document, 'script');</script>
|
|||
<div class="col-first odd-row-color"><code>class </code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="../../../../Dom%C3%A4ne/Nexus6.html" class="type-name-link" title="class in Domäne">Nexus6</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Die Klasse Nexus6 hat ein einziges Objekt namens Pris Pris ist defekt und hat
|
||||
immer die gleiche id:19281982</div>
|
||||
<div class="block">Die Klasse Nexus6 generiert ein einzigen Roboter namens Pris.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code>class </code></div>
|
||||
<div class="col-second even-row-color"><code><a href="../../../../Dom%C3%A4ne/R2D2.html" class="type-name-link" title="class in Domäne">R2D2</a></code></div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Interface tpe.exceptions.roboter.RobotInstructions</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
@ -78,8 +78,7 @@ loadScripts(document, 'script');</script>
|
|||
<div class="col-first odd-row-color"><code>class </code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="../../../../Dom%C3%A4ne/Nexus6.html" class="type-name-link" title="class in Domäne">Nexus6</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Die Klasse Nexus6 hat ein einziges Objekt namens Pris Pris ist defekt und hat
|
||||
immer die gleiche id:19281982</div>
|
||||
<div class="block">Die Klasse Nexus6 generiert ein einzigen Roboter namens Pris.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code>class </code></div>
|
||||
<div class="col-second even-row-color"><code><a href="../../../../Dom%C3%A4ne/R2D2.html" class="type-name-link" title="class in Domäne">R2D2</a></code></div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>RobotException</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>RobotIllegalStateException</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>RobotMagicValueException</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Class tpe.exceptions.roboter.exceptions.RobotException</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Class tpe.exceptions.roboter.exceptions.RobotIllegalStateException</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Class tpe.exceptions.roboter.exceptions.RobotMagicValueException</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>tpe.exceptions.roboter.exceptions</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>tpe.exceptions.roboter.exceptions Class Hierarchy</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Package tpe.exceptions.roboter.exceptions</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>tpe.exceptions.roboter</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>tpe.exceptions.roboter Class Hierarchy</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Package tpe.exceptions.roboter</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Factory</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Class ui.Factory</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>ui</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>ui Class Hierarchy</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:07:39 CET 2023 -->
|
||||
<!-- Generated by javadoc (17) on Mon Jan 09 14:27:07 CET 2023 -->
|
||||
<title>Uses of Package ui</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package Domäne;
|
||||
|
||||
import tpe.exceptions.roboter.RobotControl;
|
||||
import tpe.exceptions.roboter.RobotInstructions;
|
||||
import tpe.exceptions.roboter.exceptions.RobotException;
|
||||
import tpe.exceptions.roboter.exceptions.RobotIllegalStateException;
|
||||
import tpe.exceptions.roboter.exceptions.RobotMagicValueException;
|
||||
|
@ -7,19 +9,23 @@ import tpe.exceptions.roboter.exceptions.RobotMagicValueException;
|
|||
/**
|
||||
*
|
||||
* Die Klasse C3PO erbt von Roboter.
|
||||
* @param name wie der Roboter heißen soll.
|
||||
* @param id eine zufällig vergebene Zahl zwischen 9999-19999.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class C3PO extends Roboter {
|
||||
private int id;
|
||||
private RobotType robotType;
|
||||
|
||||
/**
|
||||
* @param name wie der Roboter heißen soll.
|
||||
* @param id eine zufällig vergebene Zahl zwischen 9999-19999.
|
||||
*/
|
||||
public C3PO(String name, int id) {
|
||||
super(name);
|
||||
this.robotType = RobotType.C3PO;
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RobotControl#getid(int)
|
||||
*/
|
||||
|
@ -27,6 +33,7 @@ public class C3PO extends Roboter {
|
|||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RobotInstructions#think(int[])
|
||||
* @throws RobotIllegalStateException wenn der Roboter ausgeschaltet ist.
|
||||
|
@ -35,8 +42,8 @@ public class C3PO extends Roboter {
|
|||
public int[] think(int[] zahlen) throws RobotException {
|
||||
int remember;
|
||||
/**
|
||||
* hier wird geschaut ob zahlen die Zahl 42 enthält, wenn true
|
||||
* wird eine RobotMagicException geworfen.
|
||||
* hier wird geschaut ob zahlen die Zahl 42 enthält, wenn true wird eine
|
||||
* RobotMagicException geworfen.
|
||||
*/
|
||||
if (isPowerOn() == true) {
|
||||
for (int zahl : zahlen) {
|
||||
|
@ -46,15 +53,15 @@ public class C3PO extends Roboter {
|
|||
}
|
||||
}
|
||||
/**
|
||||
* hier werden die Zahlen absteigend mit dem InsertionSort sortiert.
|
||||
* hier wird immer die nächste Zahl im Array angeschaut.
|
||||
* hier werden die Zahlen absteigend mit dem InsertionSort sortiert. hier wird
|
||||
* immer die nächste Zahl im Array angeschaut.
|
||||
*/
|
||||
for (int i = 1; i < zahlen.length; i++) {
|
||||
remember = zahlen[i];
|
||||
int k = i;
|
||||
/**
|
||||
* hier wird die Zahl solange nach links getauscht bis die Zahl links nicht mehr kleiner
|
||||
* ist als die Zahl rechts, oder die Zahl ganz links ist.
|
||||
* hier wird die Zahl solange nach links getauscht bis die Zahl links nicht mehr
|
||||
* kleiner ist als die Zahl rechts, oder die Zahl ganz links ist.
|
||||
*/
|
||||
while (k > 0 && zahlen[k - 1] < remember) {
|
||||
zahlen[k] = zahlen[k - 1];
|
||||
|
@ -68,6 +75,7 @@ public class C3PO extends Roboter {
|
|||
throw fehler;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Roboter#getRobotType(RoboType)
|
||||
* @return roboTyoe
|
||||
|
|
|
@ -6,8 +6,8 @@ import tpe.exceptions.roboter.exceptions.RobotException;
|
|||
import tpe.exceptions.roboter.exceptions.RobotIllegalStateException;
|
||||
|
||||
/**
|
||||
* Die Klasse Nexus6 hat ein einziges Objekt namens Pris Pris ist defekt und hat
|
||||
* immer die gleiche id:19281982
|
||||
* Die Klasse Nexus6 generiert ein einzigen Roboter namens Pris. Pris ist defekt
|
||||
* und hat immer die gleiche Id:19281982
|
||||
*/
|
||||
public class Nexus6 extends Roboter {
|
||||
|
||||
|
@ -23,10 +23,11 @@ public class Nexus6 extends Roboter {
|
|||
}
|
||||
|
||||
/**
|
||||
* Falls es noch kein Objekt gibt wird eins erzeugt. Besteht jedoch schon ein
|
||||
* Objekt, so wird das Objekt zurückgegeben und kein neues erzeugt.
|
||||
*
|
||||
* @return Pris
|
||||
* Instantziiert ein neues Nexus6 Objekt falls bisher keins erzeugt wurde, und
|
||||
* gibt je nachdem entweder das bestehende oder neu erzeugte Objekt zurück.
|
||||
*
|
||||
* @return Roboter Pris
|
||||
*/
|
||||
public static Nexus6 getInstance() {
|
||||
if (PRIS == null) {
|
||||
|
|
|
@ -1,24 +1,34 @@
|
|||
package Domäne;
|
||||
|
||||
import tpe.exceptions.roboter.RobotControl;
|
||||
import tpe.exceptions.roboter.RobotInstructions;
|
||||
import tpe.exceptions.roboter.exceptions.RobotException;
|
||||
import tpe.exceptions.roboter.exceptions.RobotIllegalStateException;
|
||||
import tpe.exceptions.roboter.exceptions.RobotMagicValueException;
|
||||
|
||||
/**
|
||||
*
|
||||
* Die Klasse R2D2 erbt von Roboter.
|
||||
* @param name wie der Roboter heißen soll.
|
||||
* @Param id eine zufällig vergebene Zahl zwischen 0-9999.
|
||||
*
|
||||
*/
|
||||
public class R2D2 extends Roboter {
|
||||
private int id;
|
||||
private RobotType robotType;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
* @param name Name des Roboters.
|
||||
* @param id Eine zufällig vergebene Zahl zwischen 0-9999.
|
||||
*
|
||||
*/
|
||||
public R2D2(String name, int id) {
|
||||
super(name);
|
||||
this.robotType = RobotType.R2D2;
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RobotInstructions#think(int[])
|
||||
* @throws RobotIllegalStateException wenn der Roboter ausgeschaltet ist.
|
||||
|
@ -26,7 +36,8 @@ public class R2D2 extends Roboter {
|
|||
@Override
|
||||
public int[] think(int[] zahlen) throws RobotException {
|
||||
/**
|
||||
* Falls zahlen die Zahl 42 enthält, wird eine RobotMagicValueException geworfen.
|
||||
* Falls zahlen die Zahl 42 enthält, wird eine RobotMagicValueException
|
||||
* geworfen.
|
||||
*/
|
||||
if (isPowerOn() == true) {
|
||||
for (int zahl : zahlen) {
|
||||
|
@ -36,10 +47,9 @@ public class R2D2 extends Roboter {
|
|||
}
|
||||
}
|
||||
/**
|
||||
* Hier werden die Zahlen aufsteigend mit dem SelectionSort sortiert.
|
||||
* Hier wird immer die nächst kleinere Zahl gesucht.
|
||||
* ist i(die Zahl links) größer als k(die Zahl rechts),
|
||||
* so werden beide Zahlen getauscht.
|
||||
* Hier werden die Zahlen aufsteigend mit dem SelectionSort sortiert. Hier wird
|
||||
* immer die nächst kleinere Zahl gesucht. ist i(die Zahl links) größer als
|
||||
* k(die Zahl rechts), so werden beide Zahlen getauscht.
|
||||
*/
|
||||
for (int i = 0; i < zahlen.length - 1; i++) {
|
||||
for (int k = i + 1; k < zahlen.length; k++) {
|
||||
|
@ -56,6 +66,7 @@ public class R2D2 extends Roboter {
|
|||
fehler = new RobotIllegalStateException("Roboter ausgeschaltet! Bitte einschalten.", this.name);
|
||||
throw fehler;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RobotControl#getId(int)
|
||||
*/
|
||||
|
@ -63,6 +74,7 @@ public class R2D2 extends Roboter {
|
|||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Roboter#getRobotType(robotType)
|
||||
*/
|
||||
|
|
|
@ -3,6 +3,8 @@ package Domäne;
|
|||
import java.util.stream.IntStream;
|
||||
|
||||
import tpe.exceptions.roboter.Robot;
|
||||
import tpe.exceptions.roboter.RobotControl;
|
||||
import tpe.exceptions.roboter.RobotInstructions;
|
||||
import tpe.exceptions.roboter.exceptions.RobotException;
|
||||
import tpe.exceptions.roboter.exceptions.RobotIllegalStateException;
|
||||
import tpe.exceptions.roboter.exceptions.RobotMagicValueException;
|
||||
|
@ -19,7 +21,7 @@ public abstract class Roboter implements Robot {
|
|||
protected RobotException fehler;
|
||||
|
||||
/**
|
||||
* Roboter wird in einem ausgeschalteten Zustand instanziiert!
|
||||
* Roboter wird in einem ausgeschalteten Zustand instanziiert.
|
||||
*/
|
||||
Roboter(String name) {
|
||||
|
||||
|
@ -43,8 +45,8 @@ public abstract class Roboter implements Robot {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see RobotControl#triggerPowerSwitch
|
||||
* der Zustand wird beim aufrufen zwischen true und false getauscht.
|
||||
* @see RobotControl#triggerPowerSwitch der Zustand wird beim aufrufen zwischen
|
||||
* true und false getauscht.
|
||||
*/
|
||||
@Override
|
||||
public void triggerPowerSwitch() {
|
||||
|
@ -67,6 +69,7 @@ public abstract class Roboter implements Robot {
|
|||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RobotControl#getLastException(RobotException)
|
||||
*/
|
||||
|
@ -75,9 +78,11 @@ public abstract class Roboter implements Robot {
|
|||
|
||||
return fehler;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RobotInstructions#speak(int)
|
||||
* @throws zahlen[] die Zahl 42 enthält, wird die RobotMagicValueException geworfen
|
||||
* @throws zahlen[] die Zahl 42 enthält, wird die RobotMagicValueException
|
||||
* geworfen
|
||||
*
|
||||
*/
|
||||
public String speak(int[] zahlen) throws RobotException {
|
||||
|
@ -93,11 +98,14 @@ public abstract class Roboter implements Robot {
|
|||
fehler = new RobotIllegalStateException("Roboter ausgeschaltet! Bitte einschalten.", this.name);
|
||||
throw fehler;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gibt die Zahlen als String zurück. Zwischen den Zahlen wird das richtige Trennzeichen verwendet
|
||||
* Die Methode erkennt das richtige Trennzeichen, indem es die erste Zahl mit der letzen Zahl vergleicht.
|
||||
* R2D2 sortiert die Zahlen aufsteigend, daher muss die erste Zahl kleiner als die letzte Zahl sein.
|
||||
* Bei C3PO ist es anders herum.
|
||||
* Gibt die Zahlen als String zurück. Zwischen den Zahlen wird das richtige
|
||||
* Trennzeichen verwendet Die Methode erkennt das richtige Trennzeichen, indem
|
||||
* es die erste Zahl mit der letzen Zahl vergleicht. R2D2 sortiert die Zahlen
|
||||
* aufsteigend, daher muss die erste Zahl kleiner als die letzte Zahl sein. Bei
|
||||
* C3PO ist es anders herum.
|
||||
*
|
||||
* @param zahlen
|
||||
* @return String der die Zahlen mit Trennzeichen zurück gibt.
|
||||
*
|
||||
|
@ -115,11 +123,13 @@ public abstract class Roboter implements Robot {
|
|||
return null;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RobotInstructions#think(int[])
|
||||
*/
|
||||
@Override
|
||||
public abstract int[] think(int[] zahlen) throws RobotException;
|
||||
|
||||
/**
|
||||
* gibt den Typ des Roboters zurück
|
||||
*/
|
||||
|
|
|
@ -56,25 +56,30 @@ public class Factorysystem {
|
|||
public boolean zustandRoboter(int id) {
|
||||
return robotFactory.roboterZustand(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Schlatet den Schalter vom Roboter auf An oder Aus.
|
||||
* Pris bleibt Ausgeschaltet.
|
||||
* @param id
|
||||
* @return
|
||||
* Schlatet den Schalter vom Roboter auf An oder Aus. Pris bleibt Ausgeschaltet.
|
||||
*
|
||||
* @param id Id des Roboters
|
||||
* @return Gibt zurück ob der Roboter ein- oder ausgeschaltet wurde.
|
||||
*/
|
||||
public boolean schalterBetätigen(int id) {
|
||||
return robotFactory.schalterAnAus(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Roboter sortiert die Zahlen und gibt sie mit den richtigen Trennzeichen aus.
|
||||
*
|
||||
* @return ausgabe gibt sie weiter
|
||||
*/
|
||||
public String sprechenAufruf(int id, int[] zahlen) throws RobotException {
|
||||
String ausgabe = robotFactory.aufrufSpeakAndThink(id, zahlen);
|
||||
return ausgabe;
|
||||
}
|
||||
|
||||
/**
|
||||
* Der letze Fehler vom Roboter wird ausgelesen und übergeben.
|
||||
*
|
||||
* @param id vom Roboter
|
||||
* @return RobotException der letzte Fehler.
|
||||
*/
|
||||
|
@ -82,20 +87,24 @@ public class Factorysystem {
|
|||
|
||||
return robotFactory.letzterFehler(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Die Daten vom Roboter werden gelesen und übergeben.
|
||||
* RoboterTyp, Name und Seriennummer.
|
||||
* @param id
|
||||
* @return String
|
||||
*
|
||||
* @param id Id des Roboters
|
||||
* @return String RoboterTyp, Name und Seriennummer.
|
||||
*/
|
||||
public String roboterDaten(int id) {
|
||||
return robotFactory.datenDesRoboters(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Um zu überprüfen ob der Roboter mit dieser Id existiert.
|
||||
* @return boolean übergibt ihn weiter
|
||||
* True bedeutet, dass der Roboter im Lager existiert.
|
||||
* False bedeutet, dass der Roboter nicht im Lager existiert.
|
||||
* Überprüft ob der Roboter mit dieser Id im Lager existiert.
|
||||
*
|
||||
* @param id Id des Roboters
|
||||
*
|
||||
* @return boolean true oder false, je nachdem ob der Roboter im Lager
|
||||
* existiert.
|
||||
*/
|
||||
public boolean istDieserRoboterDa(int id) {
|
||||
boolean istDa = robotFactory.istDieserRoboterDa(id);
|
||||
|
|
Loading…
Reference in New Issue