Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
API
Commits
e35637dd
Commit
e35637dd
authored
Feb 12, 2020
by
Julian Zobel
Browse files
-- Renamed the Attraction Point Interface from AttractionPoint to IAttractionPoint
parent
73d429c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/component/sensor/location/AttractionPoint.java
→
src/de/tudarmstadt/maki/simonstrator/api/component/sensor/location/
I
AttractionPoint.java
View file @
e35637dd
...
...
@@ -26,7 +26,7 @@ package de.tudarmstadt.maki.simonstrator.api.component.sensor.location;
* @author Bjoern Richerzhagen
*
*/
public
interface
AttractionPoint
extends
Location
{
public
interface
I
AttractionPoint
extends
Location
{
/**
* Name of the attraction point
...
...
@@ -43,12 +43,12 @@ public interface AttractionPoint extends Location {
* @param newName
* @return
*/
public
AttractionPoint
clone
(
String
newName
);
public
I
AttractionPoint
clone
(
String
newName
);
/**
* A weight (should be normalized between 0 and 1), can be used for example
* in the social movement model. This refers to the "importance" of an
* {@link AttractionPoint}.
* {@link
I
AttractionPoint}.
*
* @return weight between 0 and 1
*/
...
...
@@ -69,7 +69,7 @@ public interface AttractionPoint extends Location {
/**
* A weight (should be normalized between 0 and 1), can be used for example
* in the social movement model. This refers to the "importance" of an
* {@link AttractionPoint}.
* {@link
I
AttractionPoint}.
*
* @param weight
*/
...
...
src/de/tudarmstadt/maki/simonstrator/api/component/sensor/location/LocationActuator.java
View file @
e35637dd
...
...
@@ -49,9 +49,9 @@ public interface LocationActuator extends LocationSensor {
* {@link UnsupportedOperationException} if it is not supported.
*
* @param targetAttractionPoint
* {@link AttractionPoint} the node should move to.
* {@link
I
AttractionPoint} the node should move to.
*/
public
void
setTargetAttractionPoint
(
AttractionPoint
targetAttractionPoint
)
throws
UnsupportedOperationException
;
public
void
setTargetAttractionPoint
(
I
AttractionPoint
targetAttractionPoint
)
throws
UnsupportedOperationException
;
/**
* Returns all currently known (to this node) attraction points. These can
...
...
@@ -59,14 +59,14 @@ public interface LocationActuator extends LocationSensor {
*
* @return
*/
public
Set
<
AttractionPoint
>
getAllAttractionPoints
();
public
Set
<
I
AttractionPoint
>
getAllAttractionPoints
();
/**
* Programmatically add a new attraction point. Currently not supported.
*
* @param attractionPoint
*/
default
public
void
addAttractionPoint
(
AttractionPoint
attractionPoint
)
{
default
public
void
addAttractionPoint
(
I
AttractionPoint
attractionPoint
)
{
throw
new
UnsupportedOperationException
();
}
...
...
@@ -75,7 +75,7 @@ public interface LocationActuator extends LocationSensor {
*
* @param toRemove
*/
default
public
void
removeAttractionPoint
(
AttractionPoint
toRemove
)
{
default
public
void
removeAttractionPoint
(
I
AttractionPoint
toRemove
)
{
throw
new
UnsupportedOperationException
();
}
...
...
src/de/tudarmstadt/maki/simonstrator/api/component/sensor/location/LocationSensor.java
View file @
e35637dd
...
...
@@ -78,11 +78,11 @@ public interface LocationSensor extends SensorComponent {
public
LocationRequest
getLocationRequest
();
/**
* Retrieve the targeted {@link AttractionPoint}, representing the location
* Retrieve the targeted {@link
I
AttractionPoint}, representing the location
* the node is currently approaching.
*
* @return
*/
public
AttractionPoint
getCurrentTargetAttractionPoint
();
public
I
AttractionPoint
getCurrentTargetAttractionPoint
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment