import org.oic.simulator.InvalidArgsException;
import org.oic.simulator.SimulatorException;
import org.oic.simulator.SimulatorResourceAttribute;
-import org.oic.simulator.SimulatorResourceModel;
+/**
+ * This class represents a single type resource(Non-collection resource). It
+ * provides APIs specific to single resource for manipulating the resource model
+ * by adding/removing the attributes, and updating the attribute values manually
+ * and automatically.
+ */
public final class SimulatorSingleResource extends SimulatorResource {
private SimulatorSingleResource(long nativeHandle) {
* Name of the attribute
*
* @return An object of {@link SimulatorResourceAttribute}, or null if
- * resource doest not have attribute of this name.
+ * resource does not have attribute of this name.
*
* @throws InvalidArgsException
* This exception will be thrown if the attribute name is
/**
* API to add an attribute to resource's representation model.
*
- * @param attrName
- * Name of the attribute.
* @param attribute
* Attribute to be added to resource's representation model.
*
* sequentially.
*
* @param type
- * {@link AutomationType} indicating whether the automation is
+ * {@link AutoUpdateType} indicating whether the automation is
* one-time or recursive.
* @param interval
* Interval time in milliseconds.
* @param listener
- * Listener to be notified when value updation ends.
+ * Listener to be notified when automation ends.
*
* @return Automation ID using which the automation can be stopped.
*
* @param attrName
* Name of the attribute to be automated.
* @param type
- * {@link AutomationType} indicating whether the automation is
+ * {@link AutoUpdateType} indicating whether the automation is
* one-time or recursive.
* @param interval
* Interval time in milliseconds.