Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
a37a0f6f
Commit
a37a0f6f
authored
17 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
LMS-103
- package.html added - ExperimentIdentifier.toString() improved SVN: 2243
parent
7f132729
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bds/source/java/ch/systemsx/cisd/bds/ExperimentIdentifier.java
+1
-1
1 addition, 1 deletion
...ource/java/ch/systemsx/cisd/bds/ExperimentIdentifier.java
bds/source/java/ch/systemsx/cisd/bds/package.html
+38
-0
38 additions, 0 deletions
bds/source/java/ch/systemsx/cisd/bds/package.html
with
39 additions
and
1 deletion
bds/source/java/ch/systemsx/cisd/bds/ExperimentIdentifier.java
+
1
−
1
View file @
a37a0f6f
...
...
@@ -127,7 +127,7 @@ public class ExperimentIdentifier
@Override
public
String
toString
()
{
return
"[group:"
+
groupCode
+
",project:"
+
projectCode
+
",experiment"
+
experimentCode
;
return
"[group:"
+
groupCode
+
",project:"
+
projectCode
+
",experiment
:
"
+
experimentCode
+
"]"
;
}
...
...
This diff is collapsed.
Click to expand it.
bds/source/java/ch/systemsx/cisd/bds/package.html
0 → 100644
+
38
−
0
View file @
a37a0f6f
<html>
<body>
<h1>
Biological Data Standard (BDS) API
</h1>
<h2>
Usage
</h2>
Here is a minimum example of creating a data structure:
<pre>
<tt>
File baseDir = new File("");
IStorage storage = new FileStorage(baseDir);
storage.mount();
DataStructureV1_0 dataStructure = new DataStructureV1_0(storage);
dataStructure.getOriginalData().addFile(someFileWithData);
dataStructure.setFormat(UnknownFormat1_0.UNKNOWN_1_0);
dataStructure.setProcessingType(ProcessingType.RAW_DATA);
dataStructure.setExperimentIdentifier(new ExperimentIdentifier("myGroup", "My project", "exp1"));
dataStructure.save();
storage.unmount();
</tt>
</pre>
Here is a minimum example of loading and using a data structure:
<pre>
<tt>
File baseDir = new File("");
DataStructureLoader dataStructureLoader = new DataStructureLoader(baseDir);
IDataStructure dataStructure = dataStructureLoader.load("data42");
if (dataStructure instanceof DataStructureV1_0)
{
DataStructureV1_0 specificDataStructure = (DataStructureV1_0) dataStructure;
System.out.println("Experiment: " + specificDataStructure.getExperimentIdentifier());
}
</tt>
</pre>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment