return mapRequires.get(intFace);
}
-
-
- public static void main(String[] args) {
-
- RequiresDecl rd = new RequiresDecl("Camera");
- rd.addNewIntface("CameraWithCaptureAndData");
- rd.addNewCapability("CameraWithCaptureAndData", "ImageCapture");
- rd.addNewCapability("CameraWithCaptureAndData", "VideoRecording");
-
- System.out.println("Set of interfaces: " + rd.getInterfaces().toString());
- System.out.println("Set of capabilities: " + rd.getCapabList("CameraWithCaptureAndData").toString());
-
- rd.addNewIntface("CameraWithCaptureAndRecording");
- rd.addNewCapability("CameraWithCaptureAndRecording", "ImageCapture");
- rd.addNewCapability("CameraWithCaptureAndRecording", "BackupData");
-
- System.out.println("Set of interfaces: " + rd.getInterfaces().toString());
- System.out.println("Set of capabilities: " + rd.getCapabList("CameraWithCaptureAndData").toString());
- System.out.println("Set of capabilities: " + rd.getCapabList("CameraWithCaptureAndData").toString());
- }
}