Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anders Nilsson
OwlCompiler
Commits
0bb74d2d
Commit
0bb74d2d
authored
Feb 25, 2008
by
Anders Nilsson
Browse files
Added new test ontology
parent
84ea25b0
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
siaras/ConfigGen.jrag
View file @
0bb74d2d
...
...
@@ -28,36 +28,36 @@ aspect ConfigGen {
s.append(" -Name \"BOARD1\" -Type \"eip000\" -Bus \"SIM\" -Address \"6\" -Digin 16 -Digout 16\n");
s.append(" -Name \"BOARDSIM\" -Type \"eip000\" -Bus \"SIM\" -Address \"1\" -Digin 16 -Digout 16\n");
// System.out.println("devices: "+getNumDevice());
for (int i=0; i<getNumDevice(); i++) {
Device d = (Device) getDevice(i);
// System.out.println("Subdevice: "+d.id());
if (d instanceof IO_Board) {
s.append(" -Name ");
s.append("\""+d.id()+"\" ");
s.append("-Type ");
s.append("\""+d.id()+"\" ");
s.append("-Bus \"BASE\" ");
System.out.println(d.getNumProperty());
d.dumpTree("",System.out);
for (int j=0; j<d.getNumProperty(); j++) {
System.out.println(d.getProperty(j).decl().name());
if (d.getProperty(j).decl() instanceof Signal) {
Signal sig = (Signal) d.getProperty(j).decl();
if (sig instanceof DigIn) {
s.append(" -Digin ");
} else if (sig instanceof DigOut) {
s.append(" -DigOut ");
} else {
s.append(" Unknown_Signal ");
}
s.append(sig.getValue());
}
}
s.append("\n");
// s.append("-Digin 16 -Digout 16\n");
//
for (int i=0; i<getNumDevice(); i++) {
//
Device d = (Device) getDevice(i);
//
// System.out.println("Subdevice: "+d.id());
//
if (d instanceof IO_Board) {
//
s.append(" -Name ");
//
s.append("\""+d.id()+"\" ");
//
s.append("-Type ");
//
s.append("\""+d.id()+"\" ");
//
s.append("-Bus \"BASE\" ");
//
System.out.println(d.getNumProperty());
//
d.dumpTree("",System.out);
//
for (int j=0; j<d.getNumProperty(); j++) {
//
System.out.println(d.getProperty(j).decl().name());
//
if (d.getProperty(j).decl() instanceof Signal) {
//
Signal sig = (Signal) d.getProperty(j).decl();
//
if (sig instanceof DigIn) {
//
s.append(" -Digin ");
//
} else if (sig instanceof DigOut) {
//
s.append(" -DigOut ");
//
} else {
//
s.append(" Unknown_Signal ");
//
}
//
s.append(sig.getValue());
//
}
//
}
//
s.append("\n");
//
// s.append("-Digin 16 -Digout 16\n");
}
}
//
}
//
}
s.append("#\n");
s.append("EIO_SAFETY_SIGNAL = EIO_SIGNAL:\n");
s.append(" -Name \"BatAlarm\" -Type \"DO\" -Unit \"BOARD1\" -Phsig 3 -Store\n");
...
...
siaras/Siaras.jjt
View file @
0bb74d2d
...
...
@@ -180,6 +180,7 @@ SPECIAL_TOKEN : /* COMMENTS */
"\u0041"
-
"\u005a"
,
"\u005f"
,
"\u0061"
-
"\u007a"
,
"\u00b5"
,
"\u00c0"
-
"\u00d6"
,
"\u00d8"
-
"\u00f6"
,
"\u00f8"
-
"\u00ff"
,
...
...
testontologies/ontology-asentics.owl
0 → 100644
View file @
0bb74d2d
This diff is collapsed.
Click to expand it.
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