Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
commons
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
monticore
EmbeddedMontiArc
simulators
commons
Commits
e3af2a2e
Commit
e3af2a2e
authored
May 25, 2020
by
Jean Meurice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PhysicalValue update
parent
3bef5132
Pipeline
#285431
passed with stage
in 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
src/main/java/de/rwth/montisim/commons/simulation/PhysicalValue.java
...va/de/rwth/montisim/commons/simulation/PhysicalValue.java
+10
-6
No files found.
src/main/java/de/rwth/montisim/commons/simulation/PhysicalValue.java
View file @
e3af2a2e
...
...
@@ -6,19 +6,23 @@
*/
package
de.rwth.montisim.commons.simulation
;
import
de.rwth.montisim.commons.dynamicinterface.DataType
;
public
class
PhysicalValue
{
protected
double
value
;
protected
Object
value
;
public
final
String
name
;
public
PhysicalValue
(
String
name
,
double
startValue
){
this
.
value
=
startValue
;
public
final
DataType
type
;
public
PhysicalValue
(
String
name
,
DataType
type
,
Object
startValue
){
this
.
name
=
name
;
this
.
type
=
type
;
this
.
value
=
startValue
;
}
// These 2 functions can be overwritten to add some transformation on how to set/get the value.
public
double
get
(){
public
Object
get
(){
return
value
;
}
public
void
set
(
double
value
){
public
void
set
(
Object
value
){
this
.
value
=
value
;
}
...
...
@@ -26,7 +30,7 @@ public class PhysicalValue {
* This function returns returns the internal value.
* It should not be overwritten.
*/
public
double
value
(){
public
Object
value
(){
return
value
;
}
}
\ No newline at end of file
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