text: //%LICENSE////////////////////////////////////////////////////////////////
  //
  // Licensed to The Open Group (TOG) under one or more contributor license
  // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  // this work for additional information regarding copyright ownership.
  // Each contributor licenses this file to you under the OpenPegasus Open
  // Source License; you may not use this file except in compliance with the
  // License.
  //
  // Permission is hereby granted, free of charge, to any person obtaining a
  // copy of this software and associated documentation files (the "Software"),
  // to deal in the Software without restriction, including without limitation
  // the rights to use, copy, modify, merge, publish, distribute, sublicense,
  // and/or sell copies of the Software, and to permit persons to whom the
  // Software is furnished to do so, subject to the following conditions:
  //
  // The above copyright notice and this permission notice shall be included
  // in all copies or substantial portions of the Software.
  //
  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  //
  //////////////////////////////////////////////////////////////////////////
  //
  //%/////////////////////////////////////////////////////////////////////////
  
  
  UNIX_Refrigeration::UNIX_Refrigeration(void)
  {
  }
  
  UNIX_Refrigeration::~UNIX_Refrigeration(void)
  {
  }
  
  
  Boolean UNIX_Refrigeration::getInstanceID(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_INSTANCE_ID, getInstanceID());
  	return true;
  }
  
  String UNIX_Refrigeration::getInstanceID() const
  {
  	return String ("");
  }
  
  Boolean UNIX_Refrigeration::getCaption(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_CAPTION, getCaption());
  	return true;
  }
  
  String UNIX_Refrigeration::getCaption() const
  {
  	return String ("");
  }
  
  Boolean UNIX_Refrigeration::getDescription(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_DESCRIPTION, getDescription());
  	return true;
  }
  
  String UNIX_Refrigeration::getDescription() const
  {
  	return String ("");
  }
  
  Boolean UNIX_Refrigeration::getElementName(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_ELEMENT_NAME, getElementName());
  	return true;
  }
  
  String UNIX_Refrigeration::getElementName() const
  {
  	return String("Refrigeration");
  }
  
  Boolean UNIX_Refrigeration::getInstallDate(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_INSTALL_DATE, getInstallDate());
  	return true;
  }
  
  CIMDateTime UNIX_Refrigeration::getInstallDate() const
  {
  	struct tm* clock;			// create a time structure
  	time_t val = time(NULL);
  	clock = gmtime(&(val));	// Get the last modified time and put it into the time structure
  	return CIMDateTime(
  		clock->tm_year + 1900,
  		clock->tm_mon + 1,
  		clock->tm_mday,
  		clock->tm_hour,
  		clock->tm_min,
  		clock->tm_sec,
  		0,0,
  		clock->tm_gmtoff);
  }
  
  Boolean UNIX_Refrigeration::getName(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_NAME, getName());
  	return true;
  }
  
  String UNIX_Refrigeration::getName() const
  {
  	return String ("");
  }
  
  Boolean UNIX_Refrigeration::getOperationalStatus(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_OPERATIONAL_STATUS, getOperationalStatus());
  	return true;
  }
  
  Array<Uint16> UNIX_Refrigeration::getOperationalStatus() const
  {
  	Array<Uint16> as;
  	
  
  	return as;
  
  }
  
  Boolean UNIX_Refrigeration::getStatusDescriptions(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_STATUS_DESCRIPTIONS, getStatusDescriptions());
  	return true;
  }
  
  Array<String> UNIX_Refrigeration::getStatusDescriptions() const
  {
  	Array<String> as;
  	
  
  	return as;
  
  }
  
  Boolean UNIX_Refrigeration::getStatus(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_STATUS, getStatus());
  	return true;
  }
  
  String UNIX_Refrigeration::getStatus() const
  {
  	return String(DEFAULT_STATUS);
  }
  
  Boolean UNIX_Refrigeration::getHealthState(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_HEALTH_STATE, getHealthState());
  	return true;
  }
  
  Uint16 UNIX_Refrigeration::getHealthState() const
  {
  	return Uint16(DEFAULT_HEALTH_STATE);
  }
  
  Boolean UNIX_Refrigeration::getCommunicationStatus(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_COMMUNICATION_STATUS, getCommunicationStatus());
  	return true;
  }
  
  Uint16 UNIX_Refrigeration::getCommunicationStatus() const
  {
  	return Uint16(0);
  }
  
  Boolean UNIX_Refrigeration::getDetailedStatus(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_DETAILED_STATUS, getDetailedStatus());
  	return true;
  }
  
  Uint16 UNIX_Refrigeration::getDetailedStatus() const
  {
  	return Uint16(0);
  }
  
  Boolean UNIX_Refrigeration::getOperatingStatus(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_OPERATING_STATUS, getOperatingStatus());
  	return true;
  }
  
  Uint16 UNIX_Refrigeration::getOperatingStatus() const
  {
  	return Uint16(DEFAULT_OPERATING_STATUS);
  }
  
  Boolean UNIX_Refrigeration::getPrimaryStatus(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_PRIMARY_STATUS, getPrimaryStatus());
  	return true;
  }
  
  Uint16 UNIX_Refrigeration::getPrimaryStatus() const
  {
  	return Uint16(DEFAULT_PRIMARY_STATUS);
  }
  
  Boolean UNIX_Refrigeration::getEnabledState(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_ENABLED_STATE, getEnabledState());
  	return true;
  }
  
  Uint16 UNIX_Refrigeration::getEnabledState() const
  {
  	return Uint16(DEFAULT_ENABLED_STATE);
  }
  
  Boolean UNIX_Refrigeration::getOtherEnabledState(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_OTHER_ENABLED_STATE, getOtherEnabledState());
  	return true;
  }
  
  String UNIX_Refrigeration::getOtherEnabledState() const
  {
  	return String ("");
  }
  
  Boolean UNIX_Refrigeration::getRequestedState(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_REQUESTED_STATE, getRequestedState());
  	return true;
  }
  
  Uint16 UNIX_Refrigeration::getRequestedState() const
  {
  	return Uint16(0);
  }
  
  Boolean UNIX_Refrigeration::getEnabledDefault(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_ENABLED_DEFAULT, getEnabledDefault());
  	return true;
  }
  
  Uint16 UNIX_Refrigeration::getEnabledDefault() const
  {
  	return Uint16(0);
  }
  
  Boolean UNIX_Refrigeration::getTimeOfLastStateChange(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_TIME_OF_LAST_STATE_CHANGE, getTimeOfLastStateChange());
  	return true;
  }
  
  CIMDateTime UNIX_Refrigeration::getTimeOfLastStateChange() const
  {
  	struct tm* clock;			// create a time structure
  	time_t val = time(NULL);
  	clock = gmtime(&(val));	// Get the last modified time and put it into the time structure
  	return CIMDateTime(
  		clock->tm_year + 1900,
  		clock->tm_mon + 1,
  		clock->tm_mday,
  		clock->tm_hour,
  		clock->tm_min,
  		clock->tm_sec,
  		0,0,
  		clock->tm_gmtoff);
  }
  
  Boolean UNIX_Refrigeration::getAvailableRequestedStates(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_AVAILABLE_REQUESTED_STATES, getAvailableRequestedStates());
  	return true;
  }
  
  Array<Uint16> UNIX_Refrigeration::getAvailableRequestedStates() const
  {
  	Array<Uint16> as;
  	
  
  	return as;
  
  }
  
  Boolean UNIX_Refrigeration::getTransitioningToState(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_TRANSITIONING_TO_STATE, getTransitioningToState());
  	return true;
  }
  
  Uint16 UNIX_Refrigeration::getTransitioningToState() const
  {
  	return Uint16(0);
  }
  
  Boolean UNIX_Refrigeration::getSystemCreationClassName(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_SYSTEM_CREATION_CLASS_NAME, getSystemCreationClassName());
  	return true;
  }
  
  String UNIX_Refrigeration::getSystemCreationClassName() const
  {
  	return String("UNIX_ComputerSystem");
  }
  
  Boolean UNIX_Refrigeration::getSystemName(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_SYSTEM_NAME, getSystemName());
  	return true;
  }
  
  String UNIX_Refrigeration::getSystemName() const
  {
  	return CIMHelper::HostName;
  }
  
  Boolean UNIX_Refrigeration::getCreationClassName(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_CREATION_CLASS_NAME, getCreationClassName());
  	return true;
  }
  
  String UNIX_Refrigeration::getCreationClassName() const
  {
  	return String("UNIX_Refrigeration");
  }
  
  Boolean UNIX_Refrigeration::getDeviceID(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_DEVICE_ID, getDeviceID());
  	return true;
  }
  
  String UNIX_Refrigeration::getDeviceID() const
  {
  	return String ("");
  }
  
  Boolean UNIX_Refrigeration::getPowerManagementSupported(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_POWER_MANAGEMENT_SUPPORTED, getPowerManagementSupported());
  	return true;
  }
  
  Boolean UNIX_Refrigeration::getPowerManagementSupported() const
  {
  	return Boolean(false);
  }
  
  Boolean UNIX_Refrigeration::getPowerManagementCapabilities(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_POWER_MANAGEMENT_CAPABILITIES, getPowerManagementCapabilities());
  	return true;
  }
  
  Array<Uint16> UNIX_Refrigeration::getPowerManagementCapabilities() const
  {
  	Array<Uint16> as;
  	
  
  	return as;
  
  }
  
  Boolean UNIX_Refrigeration::getAvailability(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_AVAILABILITY, getAvailability());
  	return true;
  }
  
  Uint16 UNIX_Refrigeration::getAvailability() const
  {
  	return Uint16(0);
  }
  
  Boolean UNIX_Refrigeration::getStatusInfo(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_STATUS_INFO, getStatusInfo());
  	return true;
  }
  
  Uint16 UNIX_Refrigeration::getStatusInfo() const
  {
  	return Uint16(0);
  }
  
  Boolean UNIX_Refrigeration::getLastErrorCode(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_LAST_ERROR_CODE, getLastErrorCode());
  	return true;
  }
  
  Uint32 UNIX_Refrigeration::getLastErrorCode() const
  {
  	return Uint32(0);
  }
  
  Boolean UNIX_Refrigeration::getErrorDescription(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_ERROR_DESCRIPTION, getErrorDescription());
  	return true;
  }
  
  String UNIX_Refrigeration::getErrorDescription() const
  {
  	return String ("");
  }
  
  Boolean UNIX_Refrigeration::getErrorCleared(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_ERROR_CLEARED, getErrorCleared());
  	return true;
  }
  
  Boolean UNIX_Refrigeration::getErrorCleared() const
  {
  	return Boolean(false);
  }
  
  Boolean UNIX_Refrigeration::getOtherIdentifyingInfo(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_OTHER_IDENTIFYING_INFO, getOtherIdentifyingInfo());
  	return true;
  }
  
  Array<String> UNIX_Refrigeration::getOtherIdentifyingInfo() const
  {
  	Array<String> as;
  	
  
  	return as;
  
  }
  
  Boolean UNIX_Refrigeration::getPowerOnHours(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_POWER_ON_HOURS, getPowerOnHours());
  	return true;
  }
  
  Uint64 UNIX_Refrigeration::getPowerOnHours() const
  {
  	return Uint64(0);
  }
  
  Boolean UNIX_Refrigeration::getTotalPowerOnHours(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_TOTAL_POWER_ON_HOURS, getTotalPowerOnHours());
  	return true;
  }
  
  Uint64 UNIX_Refrigeration::getTotalPowerOnHours() const
  {
  	return Uint64(0);
  }
  
  Boolean UNIX_Refrigeration::getIdentifyingDescriptions(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_IDENTIFYING_DESCRIPTIONS, getIdentifyingDescriptions());
  	return true;
  }
  
  Array<String> UNIX_Refrigeration::getIdentifyingDescriptions() const
  {
  	Array<String> as;
  	
  
  	return as;
  
  }
  
  Boolean UNIX_Refrigeration::getAdditionalAvailability(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_ADDITIONAL_AVAILABILITY, getAdditionalAvailability());
  	return true;
  }
  
  Array<Uint16> UNIX_Refrigeration::getAdditionalAvailability() const
  {
  	Array<Uint16> as;
  	
  
  	return as;
  
  }
  
  Boolean UNIX_Refrigeration::getMaxQuiesceTime(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_MAX_QUIESCE_TIME, getMaxQuiesceTime());
  	return true;
  }
  
  Uint64 UNIX_Refrigeration::getMaxQuiesceTime() const
  {
  	return Uint64(0);
  }
  
  Boolean UNIX_Refrigeration::getActiveCooling(CIMProperty &p) const
  {
  	p = CIMProperty(PROPERTY_ACTIVE_COOLING, getActiveCooling());
  	return true;
  }
  
  Boolean UNIX_Refrigeration::getActiveCooling() const
  {
  	return Boolean(false);
  }
  
  
  
  Boolean UNIX_Refrigeration::initialize()
  {
  	return false;
  }
  
  Boolean UNIX_Refrigeration::load(int &pIndex)
  {
  	return false;
  }
  
  Boolean UNIX_Refrigeration::finalize()
  {
  	return false;
  }
  
  Boolean UNIX_Refrigeration::find(Array<CIMKeyBinding> &kbArray)
  {
  	CIMKeyBinding kb;
  	String systemCreationClassNameKey;
  	String systemNameKey;
  	String creationClassNameKey;
  	String deviceIDKey;
  
  
  	for(Uint32 i = 0; i < kbArray.size(); i++)
  	{
  		kb = kbArray[i];
  		CIMName keyName = kb.getName();
  		if (keyName.equal(PROPERTY_SYSTEM_CREATION_CLASS_NAME)) systemCreationClassNameKey = kb.getValue();
  		else if (keyName.equal(PROPERTY_SYSTEM_NAME)) systemNameKey = kb.getValue();
  		else if (keyName.equal(PROPERTY_CREATION_CLASS_NAME)) creationClassNameKey = kb.getValue();
  		else if (keyName.equal(PROPERTY_DEVICE_ID)) deviceIDKey = kb.getValue();
  	}
  
  
  
  /* EXecute find with extracted keys */
  
  	return false;
  }
  