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
PeerfactSim.KOM
Commits
a5c7e481
Commit
a5c7e481
authored
Sep 11, 2018
by
Julian Zobel
Browse files
Moved Battery Interface where it belongs (to the interfaces!)
parent
1a516dc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/
impl
/energy/Battery.java
→
src/de/tud/kom/p2psim/
api
/energy/Battery.java
View file @
a5c7e481
...
...
@@ -18,7 +18,9 @@
*
*/
package
de.tud.kom.p2psim.impl.energy
;
package
de.tud.kom.p2psim.api.energy
;
import
java.nio.channels.UnsupportedAddressTypeException
;
/**
* This interface implements basic methods used by the EnergyModel to simulate a
...
...
@@ -60,7 +62,9 @@ public interface Battery extends Cloneable {
/**
* Resets the Battery to the initial Energy-Level
*/
public
void
reset
();
default
public
void
reset
()
{
throw
new
UnsupportedOperationException
();
}
/**
* Sets the battery to a given percentage.
...
...
@@ -92,4 +96,11 @@ public interface Battery extends Cloneable {
* @return
*/
public
Battery
clone
();
/**
* Returns true, if the battery is fully charged.
*
* @return
*/
public
boolean
isFullyCharged
();
}
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