Interface Model

All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject

public interface Model extends OsidObject

A Model represents a specific make of a product that is used to build a vocabulary of managed products.

  • Method Details

    • getManufacturerId

      Id getManufacturerId()
      Gets the manufacturer Id .
      Returns:
      a resource Id
      Compliance:
      mandatory - This method must be implemented.
    • getManufacturer

      Resource getManufacturer() throws OperationFailedException
      Gets the manufacturer (e.g. Cisco).
      Returns:
      a resource
      Throws:
      OperationFailedException - unable to complete request
      Compliance:
      mandatory - This method must be implemented.
    • getArchetype

      String getArchetype()
      Gets the model name component (e.g. ASR 9010)
      Returns:
      the model
      Compliance:
      mandatory - This method must be implemented.
    • getNumber

      String getNumber()
      Gets the model number (e.g. ASR-9010-AC-V2).
      Returns:
      the model number
      Compliance:
      mandatory - This method must be implemented.
    • getModelRecord

      ModelRecord getModelRecord(Type modelRecordType) throws OperationFailedException
      Gets the model record corresponding to the given Model record Type .This method is used to retrieve an object implementing the requested record. The modelRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(modelRecordType) is true .
      Parameters:
      modelRecordType - the type of model record to retrieve
      Returns:
      the model record
      Throws:
      NullArgumentException - modelRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(modelRecordType) is false
      Compliance:
      mandatory - This method must be implemented.