Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
moberg
Commits
a8aa6cf8
Commit
a8aa6cf8
authored
Apr 03, 2019
by
Anders Blomdell
Browse files
Expose new interface for Java and deprecate old
parent
94c46dc2
Changes
5
Hide whitespace changes
Inline
Side-by-side
adaptors/java/src/se/lth/control/realtime/AnalogIn.java
View file @
a8aa6cf8
...
...
@@ -35,8 +35,13 @@ public class AnalogIn extends IOChannel {
Moberg
.
analogInClose
(
index
);
}
@Deprecated
public
double
get
()
throws
IOChannelException
{
return
Moberg
.
analogIn
(
index
);
}
public
double
read
()
throws
IOChannelException
{
return
Moberg
.
analogIn
(
index
);
}
}
adaptors/java/src/se/lth/control/realtime/AnalogOut.java
View file @
a8aa6cf8
...
...
@@ -39,8 +39,13 @@ public class AnalogOut extends IOChannel {
Moberg
.
analogOutClose
(
index
);
}
@Deprecated
public
void
set
(
double
value
)
throws
IOChannelException
{
Moberg
.
analogOut
(
index
,
value
);
}
public
double
write
(
double
value
)
throws
IOChannelException
{
return
Moberg
.
analogOut
(
index
,
value
);
}
}
adaptors/java/src/se/lth/control/realtime/DigitalIn.java
View file @
a8aa6cf8
...
...
@@ -37,8 +37,13 @@ public class DigitalIn extends IOChannel {
Moberg
.
digitalInClose
(
index
);
}
@Deprecated
public
boolean
get
()
throws
IOChannelException
{
return
Moberg
.
digitalIn
(
index
);
}
public
boolean
read
()
throws
IOChannelException
{
return
Moberg
.
digitalIn
(
index
);
}
}
adaptors/java/src/se/lth/control/realtime/DigitalOut.java
View file @
a8aa6cf8
...
...
@@ -36,8 +36,13 @@ public class DigitalOut extends IOChannel {
Moberg
.
digitalOutClose
(
index
);
}
@Deprecated
public
void
set
(
boolean
value
)
throws
IOChannelException
{
Moberg
.
digitalOut
(
index
,
value
);
}
public
boolean
write
(
boolean
value
)
throws
IOChannelException
{
return
Moberg
.
digitalOut
(
index
,
value
);
}
}
adaptors/java/src/se/lth/control/realtime/EncoderIn.java
View file @
a8aa6cf8
...
...
@@ -36,9 +36,14 @@ public class EncoderIn extends IOChannel {
protected
void
close
()
throws
IOChannelException
{
Moberg
.
encoderInClose
(
index
);
}
@Deprecated
public
long
get
()
throws
IOChannelException
{
return
Moberg
.
encoderIn
(
index
);
}
public
long
read
()
throws
IOChannelException
{
return
Moberg
.
encoderIn
(
index
);
}
}
Write
Preview
Supports
Markdown
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