changed the IO interface
This commit is contained in:
parent
b29fbd5901
commit
321707368f
@ -1,16 +1,8 @@
|
|||||||
package com.example.aped.communication;
|
package com.example.aped.communication;
|
||||||
|
|
||||||
public interface IIO {
|
public interface IIO {
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @return Einlesewerte in Array
|
|
||||||
*/
|
|
||||||
String[][] rueckgabeAI();
|
|
||||||
|
|
||||||
/**
|
public Object read(String deviceName);
|
||||||
*
|
|
||||||
* @return Einlesewerte in Array
|
public Object write(String deviceName, Object value);
|
||||||
*/
|
|
||||||
String rueckgabeDI();
|
|
||||||
//DO (int);
|
|
||||||
}
|
}
|
||||||
|
@ -1,28 +1,14 @@
|
|||||||
package com.example.aped.communication;
|
package com.example.aped.communication;
|
||||||
|
|
||||||
public class TestIO implements IIO {
|
public class TestIO implements IIO {
|
||||||
/** Test Klasse.*/
|
|
||||||
@Override
|
@Override
|
||||||
public String[][] rueckgabeAI() {
|
public Object read(String deviceName) {
|
||||||
String[][] AI = new String[3][3];
|
return new String("test");
|
||||||
/** AI[0][0]="Test";
|
|
||||||
AI[1][1]="5.658";
|
|
||||||
AI[1][2]="Volt";
|
|
||||||
|
|
||||||
AI[1][0]="Test2";
|
|
||||||
AI[1][1]="10";
|
|
||||||
AI[1][2]="Ohm";
|
|
||||||
|
|
||||||
AI[2][0]="Test3";
|
|
||||||
AI[2][1]="9.88";
|
|
||||||
AI[2][2]="Ampere";
|
|
||||||
|
|
||||||
AI[3][0]="END";*/
|
|
||||||
return AI;
|
|
||||||
}
|
}
|
||||||
/** Test Klasse.*/
|
|
||||||
@Override
|
@Override
|
||||||
public String rueckgabeDI() {
|
public Object write(String deviceName, Object value) {
|
||||||
return null;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user