|
1-Wire API for .NET Version 4.00
|
Inherits com::dalsemi::onewire::container::OneWireContainer, com::dalsemi::onewire::container::ADContainer, and com::dalsemi::onewire::container::TemperatureContainer.
Public Member Functions | |
| OneWireContainer30 () | |
| Default constructor. | |
| OneWireContainer30 (DSPortAdapter sourceAdapter, byte[] newAddress) | |
| Creates a container with a provided adapter object and the address of this 1-Wire device. | |
| OneWireContainer30 (DSPortAdapter sourceAdapter, long newAddress) | |
| Creates a container with a provided adapter object and the address of this 1-Wire device. | |
| OneWireContainer30 (DSPortAdapter sourceAdapter, String newAddress) | |
| Creates a container with a provided adapter object and the address of this 1-Wire device. | |
| String | getName () |
| Returns the Maxim Integrated Products part number of this 1-Wire device as a string. | |
| String | getAlternateNames () |
| Returns the alternate Maxim Integrated Products part number or name. | |
| String | getDescription () |
| Returns a short description of the function of this 1-Wire device type. | |
| Enumeration | getMemoryBanks () |
| Get an enumeration of memory bank instances that implement one or more of the following interfaces: MemoryBank, PagedMemoryBank, and OTPMemoryBank. | |
| synchronized void | setResistorInternal () |
| Sets the DS2760 to use its internal .025 ohm resistor for measurements. | |
| synchronized void | setResistorExternal (double Rsens) |
| Sets the DS2760 to use an external, user-selectable resistance. | |
| byte | readByte (int memAddr) throws OneWireIOException, OneWireException |
| Reads a register byte from the memory of the DS2760. | |
| void | readBytes (int memAddr, byte[] buffer, int start, int len) throws OneWireIOException, OneWireException |
| Reads bytes from the DS2760. | |
| void | writeByte (int memAddr, byte data) throws OneWireIOException, OneWireException |
| Writes a register byte to the memory of the DS2760. | |
| byte[] | readEEPROMBlock (int blockNumber) throws OneWireIOException, OneWireException |
| Reads a 16 byte data block from one of the user EEPROM blocks. | |
| void | writeEEPROMBlock (int blockNumber, byte[] data) throws OneWireIOException, OneWireException |
| Writes a 16 byte data block to one of the user blocks. | |
| void | lockBlock (int blockNumber) throws OneWireIOException, OneWireException |
| Permanently write-protects one of the user blocks of EEPROM. | |
| boolean | getFlag (int memAddr, byte flagToGet) throws OneWireIOException, OneWireException |
| Checks the specified flag in the specified register. | |
| void | setFlag (int memAddr, byte flagToSet, boolean flagValue) throws OneWireIOException, OneWireException |
| Sets one of the flags in one of the registers. | |
| double | getCurrent (byte[] state) throws OneWireIOException, OneWireException |
| Gets the instantaneous current. | |
| void | setRemainingCapacity (double remainingCapacity) throws OneWireIOException, OneWireException |
| Allows user to set the remaining capacity. | |
| double | getRemainingCapacity (byte[] state) throws OneWireIOException, OneWireException |
| Calculates the remaining capacity in mAHours from the current Accumulator. | |
| void | setLatchState (boolean on) throws OneWireIOException, OneWireException |
| Sets the state for the Programmable Input/Output pin. | |
| boolean | getLatchState () throws OneWireIOException, OneWireException |
| Returns the latch state of the Programmable Input/Ouput pin on the DS2760. | |
| void | clearConditions () throws OneWireIOException, OneWireException |
| Clears the overvoltage, undervoltage, charge overcurrent, and discharge overcurrent flags. | |
| int | getNumberADChannels () |
| Queries to get the number of channels supported by this A/D device. | |
| boolean | hasADAlarms () |
| Queries to see if this A/D measuring device has high/low alarms. | |
| double[] | getADRanges (int channel) |
| Queries to get an array of available ranges for the specified A/D channel. | |
| double[] | getADResolutions (int channel, double range) |
| Queries to get an array of available resolutions based on the specified range on the specified A/D channel. | |
| boolean | canADMultiChannelRead () |
| Queries to see if this A/D device supports doing multiple voltage conversions at the same time. | |
| void | doADConvert (int channel, byte[] state) throws OneWireIOException, OneWireException |
| Performs voltage conversion on the specified channel. | |
| void | doADConvert (boolean[] doConvert, byte[] state) throws OneWireIOException, OneWireException |
| Performs voltage conversion on all specified channels. | |
| double[] | getADVoltage (byte[] state) throws OneWireIOException, OneWireException |
| Reads the voltage values. | |
| double | getADVoltage (int channel, byte[] state) throws OneWireIOException, OneWireException |
| Reads a channel voltage value. | |
| double | getADAlarm (int channel, int alarmType, byte[] state) throws OneWireException |
| Extracts the alarm voltage value of the specified channel from the provided state buffer. | |
| boolean | getADAlarmEnable (int channel, int alarmType, byte[] state) throws OneWireException |
| Extracts the alarm enable value of the specified channel from the provided state buffer. | |
| boolean | hasADAlarmed (int channel, int alarmType, byte[] state) throws OneWireException |
| Checks the A/D alarm event value of the specified channel from the provided state buffer. | |
| double | getADResolution (int channel, byte[] state) |
| Extracts the A/D conversion resolution of the specified channel from the provided state buffer expressed in volts. | |
| double | getADRange (int channel, byte[] state) |
| Extracts the A/D input voltage range of the specified channel from the provided state buffer. | |
| void | setADAlarm (int channel, int alarmType, double alarm, byte[] state) throws OneWireException |
| Sets the A/D alarm voltage value of the specified channel in the provided state buffer. | |
| void | setADAlarmEnable (int channel, int alarmType, boolean alarmEnable, byte[] state) throws OneWireException |
| Sets the A/D alarm enable value of the specified channel in the provided state buffer. | |
| void | setADResolution (int channel, double resolution, byte[] state) |
| Sets the A/D conversion resolution value for the specified channel in the provided state buffer. | |
| void | setADRange (int channel, double range, byte[] state) |
| Sets the A/D input range for the specified channel in the provided state buffer. | |
| boolean | hasTemperatureAlarms () |
| Queries to see if this temperature measuring device has high/low trip alarms. | |
| boolean | hasSelectableTemperatureResolution () |
| Queries to see if this device has selectable temperature resolution. | |
| double[] | getTemperatureResolutions () |
| Queries to get an array of available temperature resolutions in degrees C. | |
| double | getTemperatureAlarmResolution () throws OneWireException |
| Queries to get the high/low temperature alarm resolution in degrees C. | |
| double | getMaxTemperature () |
| Queries to get the maximum temperature in degrees C. | |
| double | getMinTemperature () |
| Queries to get the minimum temperature in degrees C. | |
| void | doTemperatureConvert (byte[] state) throws OneWireIOException, OneWireException |
| Performs a temperature conversion. | |
| double | getTemperature (byte[] state) |
Extracts the temperature value in degrees C from the state data retrieved from the readDevice() method. | |
| double | getTemperatureAlarm (int alarmType, byte[] state) throws OneWireException |
Extracts the specified temperature alarm value in degrees C from the state data retrieved from the readDevice() method. | |
| double | getTemperatureResolution (byte[] state) |
Extracts the current temperature resolution in degrees C from the state data retrieved from the readDevice() method. | |
| void | setTemperatureAlarm (int alarmType, double alarmValue, byte[] state) throws OneWireException, OneWireIOException |
| Sets the temperature alarm value in degrees C in the provided state data. | |
| void | setTemperatureResolution (double resolution, byte[] state) throws OneWireException, OneWireIOException |
| Sets the current temperature resolution in degrees C in the provided state data. | |
| byte[] | readDevice () throws OneWireIOException, OneWireException |
| Retrieves the 1-Wire device sensor state. | |
| void | writeDevice (byte[] state) throws OneWireIOException, OneWireException |
| Writes the 1-Wire device sensor state that have been changed by the 'set' methods. | |
Static Public Attributes | |
| static final byte | PROTECTION_REGISTER = 0 |
| Address of the Protection Register. | |
| static final byte | STATUS_REGISTER = 1 |
| Address of the Status Register. | |
| static final byte | EEPROM_REGISTER = 7 |
| Address of the EEPROM Register. | |
| static final byte | SPECIAL_FEATURE_REGISTER = 8 |
| Address of the Special Feature Register (SFR). | |
| static final byte | OVERVOLTAGE_FLAG = ( byte ) 128 |
PROTECTION REGISTER FLAG: When this flag is true , it indicates that the battery pack has experienced an overvoltage condition. | |
| static final byte | UNDERVOLTAGE_FLAG = 64 |
PROTECTION REGISTER FLAG: When this flag is true , the battery pack has experienced an undervoltage. | |
| static final byte | CHARGE_OVERCURRENT_FLAG = 32 |
PROTECTION REGISTER FLAG: When this flag is true the battery has experienced a charge-direction overcurrent condition. | |
| static final byte | DISCHARGE_OVERCURRENT_FLAG = 16 |
PROTECTION REGISTER FLAG: When this flag is true the battery has experienced a discharge-direction overcurrent condition. | |
| static final byte | CC_PIN_STATE_FLAG = 8 |
| PROTECTION REGISTER FLAG: Mirrors the !CC output pin. | |
| static final byte | DC_PIN_STATE_FLAG = 4 |
| PROTECTION REGISTER FLAG: Mirrors the !DC output pin. | |
| static final byte | CHARGE_ENABLE_FLAG = 2 |
| PROTECTION REGISTER FLAG: Reseting this flag will disable charging regardless of cell or pack conditions. | |
| static final byte | DISCHARGE_ENABLE_FLAG = 1 |
| PROTECTION REGISTER FLAG: Reseting this flag will disable discharging. | |
| static final byte | SLEEP_MODE_ENABLE_FLAG = 32 |
| STATUS REGISTER FLAG: Enables/disables the DS2760 to enter sleep mode when the DQ line goes low for greater than 2 seconds. | |
| static final byte | READ_NET_ADDRESS_OPCODE_FLAG = 16 |
| STATUS REGISTER FLAG: If set, the opcode for the Read Net Address command will be set to 33h. | |
| static final byte | EEPROM_COPY_FLAG = ( byte ) 128 |
EEPROM REGISTER FLAG: This flag will be true if the Copy Data Command is in progress. | |
| static final byte | EEPROM_LOCK_ENABLE_FLAG = 64 |
EEPROM REGISTER FLAG: When this flag is true , the Lock Command is enabled. | |
| static final byte | EEPROM_BLOCK_1_LOCK_FLAG = 2 |
EEPROM REGISTER FLAG: When this flag is true , Block 1 of the EEPROM (addresses 48-63) is read-only. | |
| static final byte | EEPROM_BLOCK_0_LOCK_FLAG = 1 |
EEPROM REGISTER FLAG: When this flag is true , Block 0 of the EEPROM (addresses 32-47) is read-only. | |
| static final byte | PS_PIN_STATE_FLAG = ( byte ) 128 |
| SPECIAL FEATURE REGISTER FLAG: Mirrors the state of the !PS pin. | |
| static final byte | PIO_PIN_SENSE_AND_CONTROL_FLAG = 64 |
| SPECIAL FEATURE REGISTER FLAG: Mirrors/sets the state of the PIO pin. |
1-Wire® container that encapsulates the functionality of the 1-Wire family type 30 (hex), Maxim Integrated Products part number: DS2760, High Precision Li-ion Battery Monitor.
http://pdfserv.maxim-ic.com/arpdf/DS2760.pdf
Converted to use interfaces, general rework KLA
| OneWireContainer30 | ( | DSPortAdapter | sourceAdapter, |
| byte[] | newAddress | ||
| ) |
Creates a container with a provided adapter object and the address of this 1-Wire device.
| sourceAdapter | adapter object required to communicate with this 1-Wire device |
| newAddress | address of this 1-Wire device |
| OneWireContainer30 | ( | DSPortAdapter | sourceAdapter, |
| long | newAddress | ||
| ) |
Creates a container with a provided adapter object and the address of this 1-Wire device.
| sourceAdapter | adapter object required to communicate with this 1-Wire device |
| newAddress | address of this 1-Wire device |
| OneWireContainer30 | ( | DSPortAdapter | sourceAdapter, |
| String | newAddress | ||
| ) |
Creates a container with a provided adapter object and the address of this 1-Wire device.
| sourceAdapter | adapter object required to communicate with this 1-Wire device |
| newAddress | address of this 1-Wire device |
| boolean canADMultiChannelRead | ( | ) |
Queries to see if this A/D device supports doing multiple voltage conversions at the same time.
true
if can do multi-channel voltage reads Implements ADContainer.
| void clearConditions | ( | ) | throws OneWireIOException, OneWireException |
Clears the overvoltage, undervoltage, charge overcurrent, and discharge overcurrent flags.
Each time a violation occurs, these flags stay set until reset. This method resets all 4 flags.
| OneWireIOException | Error writting data |
| OneWireException | Could not find part |
| void doADConvert | ( | int | channel, |
| byte[] | state | ||
| ) | throws OneWireIOException, OneWireException |
Performs voltage conversion on the specified channel.
The method getADVoltage()
can be used to read the result of the conversion.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| state | current state of this device returned from readDevice() |
| OneWireIOException | Error writting data |
| OneWireException | Could not find device |
Implements ADContainer.
| void doADConvert | ( | boolean[] | doConvert, |
| byte[] | state | ||
| ) | throws OneWireIOException, OneWireException |
Performs voltage conversion on all specified channels.
The method getADVoltage()
can be used to read the result of the conversion. This A/D must support multi-channel read canMultiChannelRead()
if there are more than 1 channel is specified.
| doConvert | channels to perform conversion on |
| state | current state of the device returned from readDevice() |
| OneWireIOException | Error writting data |
| OneWireException | Device does not support multi-channel reading |
Implements ADContainer.
| void doTemperatureConvert | ( | byte[] | state | ) | throws OneWireIOException, OneWireException |
Performs a temperature conversion.
| state | device state |
| OneWireIOException | Error writting data |
| OneWireException | Could not find device |
Implements TemperatureContainer.
| double getADAlarm | ( | int | channel, |
| int | alarmType, | ||
| byte[] | state | ||
| ) | throws OneWireException |
Extracts the alarm voltage value of the specified channel from the provided state buffer.
The state buffer is retrieved from the readDevice()
method.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| alarmType | desired alarm, ALARM_HIGH (1) or ALARM_LOW (0) |
| state | current state of the device returned from readDevice() |
| OneWireException | Device does not support A/D alarms |
Implements ADContainer.
| boolean getADAlarmEnable | ( | int | channel, |
| int | alarmType, | ||
| byte[] | state | ||
| ) | throws OneWireException |
Extracts the alarm enable value of the specified channel from the provided state buffer.
The state buffer is retrieved from the readDevice()
method.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| alarmType | desired alarm, ALARM_HIGH (1) or ALARM_LOW (0) |
| state | current state of the device returned from readDevice() |
true
if specified alarm is enabled| OneWireException | Device does not support A/D alarms |
Implements ADContainer.
| double getADRange | ( | int | channel, |
| byte[] | state | ||
| ) |
Extracts the A/D input voltage range of the specified channel from the provided state buffer.
The state buffer is retrieved from the readDevice()
method.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| state | current state of the device returned from readDevice() |
Implements ADContainer.
| double [] getADRanges | ( | int | channel | ) |
Queries to get an array of available ranges for the specified A/D channel.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
Implements ADContainer.
| double getADResolution | ( | int | channel, |
| byte[] | state | ||
| ) |
Extracts the A/D conversion resolution of the specified channel from the provided state buffer expressed in volts.
The state is retrieved from the readDevice()
method.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| state | current state of the device returned from readDevice() |
Implements ADContainer.
| double [] getADResolutions | ( | int | channel, |
| double | range | ||
| ) |
Queries to get an array of available resolutions based on the specified range on the specified A/D channel.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| range | range of channel specified in channel parameter |
Implements ADContainer.
| double getADVoltage | ( | int | channel, |
| byte[] | state | ||
| ) | throws OneWireIOException, OneWireException |
Reads a channel voltage value.
Must be used after a doADConvert()
method call. Also must include the last valid state from the readDevice()
method. Note, if more than one channel is to be read then it is more efficient to use the getADVoltage(byte[])
method that returns all channel values.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| state | current state of the device returned from readDevice() |
| OneWireIOException | Error reading data |
| OneWireException | Could not find device |
Implements ADContainer.
| double [] getADVoltage | ( | byte[] | state | ) | throws OneWireIOException, OneWireException |
Reads the voltage values.
Must be used after a doADConvert()
method call. Also must include the last valid state from the readDevice()
method and this A/D must support multi-channel read canMultiChannelRead()
if there are more than 1 channel.
| state | current state of the device returned from readDevice() |
| OneWireIOException | Error writting data |
| OneWireException | Device does not support multi-channel reading |
Implements ADContainer.
| String getAlternateNames | ( | ) |
Returns the alternate Maxim Integrated Products part number or name.
ie. Smart Battery Monitor
Reimplemented from OneWireContainer.
| double getCurrent | ( | byte[] | state | ) | throws OneWireIOException, OneWireException |
Gets the instantaneous current.
| state | device state |
| OneWireIOException | Error reading data |
| OneWireException | Could not find part |
| String getDescription | ( | ) |
Returns a short description of the function of this 1-Wire device type.
Reimplemented from OneWireContainer.
| boolean getFlag | ( | int | memAddr, |
| byte | flagToGet | ||
| ) | throws OneWireIOException, OneWireException |
Checks the specified flag in the specified register.
Valid registers are: PROTECTION_REGISTER
, STATUS_REGISTER
, EEPROM_REGISTER
and SPECIAL_FEATURE_REGISTER
.
| memAddr | registers address. Pre-defined fields for each register are defined above. |
| flagToGet | bitmask of desired flag, the acceptable parameters pertaining to each register are defined as constant fields above |
true
if flag is set (=1)| OneWireIOException | Error reading data |
| OneWireException | Could not find part |
| boolean getLatchState | ( | ) | throws OneWireIOException, OneWireException |
Returns the latch state of the Programmable Input/Ouput pin on the DS2760.
| OneWireIOException | Error reading data |
| OneWireException | Could not find part |
| double getMaxTemperature | ( | ) |
Queries to get the maximum temperature in degrees C.
Implements TemperatureContainer.
| Enumeration getMemoryBanks | ( | ) |
Get an enumeration of memory bank instances that implement one or more of the following interfaces: MemoryBank, PagedMemoryBank, and OTPMemoryBank.
Enumeration
of memory banks Reimplemented from OneWireContainer.
| double getMinTemperature | ( | ) |
Queries to get the minimum temperature in degrees C.
Implements TemperatureContainer.
| String getName | ( | ) |
Returns the Maxim Integrated Products part number of this 1-Wire device as a string.
Reimplemented from OneWireContainer.
| int getNumberADChannels | ( | ) |
Queries to get the number of channels supported by this A/D device.
Channel specific methods will use a channel number specified by an integer from [0 to (getNumberChannels() - 1)]
.
Implements ADContainer.
| double getRemainingCapacity | ( | byte[] | state | ) | throws OneWireIOException, OneWireException |
Calculates the remaining capacity in mAHours from the current Accumulator.
Accurate to +/- .25 mAH.
| state | device state |
| OneWireIOException | Error reading data |
| OneWireException | Could not find part |
| double getTemperature | ( | byte[] | state | ) |
Extracts the temperature value in degrees C from the state data retrieved from the readDevice()
method.
| state | device state |
doTemperatureConvert()
Implements TemperatureContainer.
| double getTemperatureAlarm | ( | int | alarmType, |
| byte[] | state | ||
| ) | throws OneWireException |
Extracts the specified temperature alarm value in degrees C from the state data retrieved from the readDevice()
method.
| alarmType | trip type ALARM_HIGH (1) or ALARM_LOW (0) |
| state | device state |
| OneWireException | Device does not support temerature alarms |
Implements TemperatureContainer.
| double getTemperatureAlarmResolution | ( | ) | throws OneWireException |
Queries to get the high/low temperature alarm resolution in degrees C.
| OneWireException | Device does not support temperature alarms |
Implements TemperatureContainer.
| double getTemperatureResolution | ( | byte[] | state | ) |
Extracts the current temperature resolution in degrees C from the state data retrieved from the readDevice()
method.
| state | device state |
Implements TemperatureContainer.
| double [] getTemperatureResolutions | ( | ) |
Queries to get an array of available temperature resolutions in degrees C.
Implements TemperatureContainer.
| boolean hasADAlarmed | ( | int | channel, |
| int | alarmType, | ||
| byte[] | state | ||
| ) | throws OneWireException |
Checks the A/D alarm event value of the specified channel from the provided state buffer.
The state buffer is retrieved from the readDevice()
method.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| alarmType | desired alarm, ALARM_HIGH (1) or ALARM_LOW (0) |
| state | current state of the device returned from readDevice() |
true
if specified alarm occurred| OneWireException | Device does not support A/D alarms |
Implements ADContainer.
| boolean hasADAlarms | ( | ) |
Queries to see if this A/D measuring device has high/low alarms.
true
if has high/low trips Implements ADContainer.
| boolean hasSelectableTemperatureResolution | ( | ) |
Queries to see if this device has selectable temperature resolution.
true
if has selectable temperature resolution Implements TemperatureContainer.
| boolean hasTemperatureAlarms | ( | ) |
Queries to see if this temperature measuring device has high/low trip alarms.
true
if has high/low temperature trip alarms Implements TemperatureContainer.
| void lockBlock | ( | int | blockNumber | ) | throws OneWireIOException, OneWireException |
Permanently write-protects one of the user blocks of EEPROM.
| blockNumber | block number to permanently write protect, acceptable parameters are 0 and 1. |
| OneWireIOException | Error locking block |
| OneWireException | Could not find part |
| byte readByte | ( | int | memAddr | ) | throws OneWireIOException, OneWireException |
Reads a register byte from the memory of the DS2760.
Note that there is no error checking as the DS2760 performs no CRC on the data.
Note: This function should only be used when reading the register memory of the DS2760. The EEPROM blocks (addresses 32-64) should be accessed with writeBlock/readBlock.
| memAddr | the address to read (0-255) |
| OneWireIOException | Error reading data |
| OneWireException | Could not find part |
| void readBytes | ( | int | memAddr, |
| byte[] | buffer, | ||
| int | start, | ||
| int | len | ||
| ) | throws OneWireIOException, OneWireException |
Reads bytes from the DS2760.
Note that there is no error-checking as the DS2760 does not perform a CRC on the data.
Note: This function should only be used when reading the register memory of the DS2760. The EEPROM blocks (addresses 32-64) should be accessed with writeBlock/readBlock.
| memAddr | the address to read (0-255) |
| buffer | buffer to receive data |
| start | start position within buffer to place data |
| len | length of buffer |
| OneWireIOException | Error reading data |
| OneWireException | Could not find part |
| byte [] readDevice | ( | ) | throws OneWireIOException, OneWireException |
Retrieves the 1-Wire device sensor state.
This state is returned as a byte array. Pass this byte array to the static query and set methods. If the device state needs to be changed then call the writeDevice()
to finalize the one or more change. With the DS2760, there are no CRC checks on data. To ensure the integrity of this data, call twice and make sure only fields expected to change have changed. This method returns bytes 0 to 31 of the memory. Many applications will not need to worry about the lack of CRC checks.
| OneWireIOException | Error reading data |
| OneWireException | Could not find device |
Implements OneWireSensor.
| byte [] readEEPROMBlock | ( | int | blockNumber | ) | throws OneWireIOException, OneWireException |
Reads a 16 byte data block from one of the user EEPROM blocks.
Note that there is no error-checking as the DS2760 performs no CRCs.
| blockNumber | the EEPROM block number to read, acceptable parameters are 0 and 1 |
| OneWireIOException | Error reading data |
| OneWireException | Could not find part |
| void setADAlarm | ( | int | channel, |
| int | alarmType, | ||
| double | alarm, | ||
| byte[] | state | ||
| ) | throws OneWireException |
Sets the A/D alarm voltage value of the specified channel in the provided state buffer.
The state buffer is retrieved from the readDevice()
method. The method writeDevice()
must be called to finalize these changes to the device. Note that multiple 'set' methods can be called before one call to writeDevice()
.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| alarmType | desired alarm, ALARM_HIGH (1) or ALARM_LOW (0) |
| alarm | A/D alarm value (will be reduced to 8 bit resolution) |
| state | current state of the device returned from readDevice() |
| OneWireException | Device does not support A/D alarms |
Implements ADContainer.
| void setADAlarmEnable | ( | int | channel, |
| int | alarmType, | ||
| boolean | alarmEnable, | ||
| byte[] | state | ||
| ) | throws OneWireException |
Sets the A/D alarm enable value of the specified channel in the provided state buffer.
The state buffer is retrieved from the readDevice()
method. The method writeDevice()
must be called to finalize these changes to the device. Note that multiple 'set' methods can be called before one call to writeDevice()
.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| alarmType | desired alarm, ALARM_HIGH (1) or ALARM_LOW (0) |
| alarmEnable | A/D alarm enable value |
| state | current state of the device returned from readDevice() |
| OneWireException | Device does not support A/D alarms |
Implements ADContainer.
| void setADRange | ( | int | channel, |
| double | range, | ||
| byte[] | state | ||
| ) |
Sets the A/D input range for the specified channel in the provided state buffer.
The state buffer is retrieved from the readDevice()
method. The method writeDevice()
must be called to finalize these changes to the device. Note that multiple 'set' methods can be called before one call to writeDevice()
.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| range | max A/D volt range, use getRanges() method to get available ranges |
| state | current state of the device returned from readDevice() |
Implements ADContainer.
| void setADResolution | ( | int | channel, |
| double | resolution, | ||
| byte[] | state | ||
| ) |
Sets the A/D conversion resolution value for the specified channel in the provided state buffer.
The state buffer is retrieved from the readDevice()
method. The method writeDevice()
must be called to finalize these changes to the device. Note that multiple 'set' methods can be called before one call to writeDevice()
.
| channel | channel in the range [0 to (getNumberChannels() - 1)] |
| resolution | A/D resolution in volts |
| state | current state of the device returned from readDevice() |
Implements ADContainer.
| void setFlag | ( | int | memAddr, |
| byte | flagToSet, | ||
| boolean | flagValue | ||
| ) | throws OneWireIOException, OneWireException |
Sets one of the flags in one of the registers.
Valid registers are: PROTECTION_REGISTER
, STATUS_REGISTER
, EEPROM_REGISTER
and SPECIAL_FEATURE_REGISTER
.
| memAddr | register address, these addresses are predefined above |
| flagToSet | bitmask of flag to set, valid parameters pertaining to each register are defined as constant fields above |
| flagValue | value to set the flag to |
| OneWireIOException | Error setting flag |
| OneWireException | Could not find part |
| void setLatchState | ( | boolean | on | ) | throws OneWireIOException, OneWireException |
Sets the state for the Programmable Input/Output pin.
In order to operate as a switch, PIO must be tied to a pull-up resistor to VDD.
| on | state of the PIO pin to set |
| OneWireIOException | Error writting data |
| OneWireException | Could not find part |
| void setRemainingCapacity | ( | double | remainingCapacity | ) | throws OneWireIOException, OneWireException |
Allows user to set the remaining capacity.
Good for accurate capacity measurements using temperature and battery life.
By measuring the battery's current and voltage when it is fully charged and when it is empty, the voltage corresponding to an empty battery and the current corresponding to a full one can be derived. These values can be detected in user program and the remaining capacity can be set to the empty/full levels accordingly for nice accuracy.
| remainingCapacity | remaining capacity in mAH |
| OneWireIOException | Error reading data |
| OneWireException | Could not find part |
| synchronized void setResistorExternal | ( | double | Rsens | ) |
Sets the DS2760 to use an external, user-selectable resistance.
This Resistance should be wired directly to the VSS (negative terminal of the cell).
| Rsens | resistance in ohms |
| synchronized void setResistorInternal | ( | ) |
Sets the DS2760 to use its internal .025 ohm resistor for measurements.
This should only be enabled if there is NO external resistor physically attached to the device.
| void setTemperatureAlarm | ( | int | alarmType, |
| double | alarmValue, | ||
| byte[] | state | ||
| ) | throws OneWireException, OneWireIOException |
Sets the temperature alarm value in degrees C in the provided state data.
Use the method writeDevice()
with this data to finalize the change to the device.
| alarmType | trip type ALARM_HIGH (1) or ALARM_LOW (0) |
| alarmValue | high/low temperature trip value in degrees C |
| state | device state |
| OneWireIOException | Error writting data |
| OneWireException | Device does not support temperature alarms |
Implements TemperatureContainer.
| void setTemperatureResolution | ( | double | resolution, |
| byte[] | state | ||
| ) | throws OneWireException, OneWireIOException |
Sets the current temperature resolution in degrees C in the provided state data.
Use the method writeDevice()
with this data to finalize the change to the device.
| resolution | temperature resolution in degrees C |
| state | device state |
| OneWireIOException | Error writting data |
| OneWireException | Could not find device |
Implements TemperatureContainer.
| void writeByte | ( | int | memAddr, |
| byte | data | ||
| ) | throws OneWireIOException, OneWireException |
Writes a register byte to the memory of the DS2760.
Note that the DS2760 does not make any use of cyclic redundancy checks (error-checking). To ensure error free transmission, double check write operation.
Note: This method should only be used when writing to the register memory of the DS2760. The EEPROM blocks (addresses 32-64) require special treatment and thus the writeBlock/readBlock functions should be used for those.
| memAddr | address to write (0-255) |
| data | data byte to write to memory |
| OneWireIOException | Error writing data |
| OneWireException | Could not find part |
| void writeDevice | ( | byte[] | state | ) | throws OneWireIOException, OneWireException |
Writes the 1-Wire device sensor state that have been changed by the 'set' methods.
It knows which registers have changed by looking at the bitmap fields appended to the state data.
| state | device state |
| OneWireIOException | Error writting data |
| OneWireException | Could not find device |
Implements OneWireSensor.
| void writeEEPROMBlock | ( | int | blockNumber, |
| byte[] | data | ||
| ) | throws OneWireIOException, OneWireException |
Writes a 16 byte data block to one of the user blocks.
The block may be rewritten at any time, except after it is locked with lockBlock()
. This method performs error checking by verifying data written.
| blockNumber | block to write, acceptable parameters are 0 and 1 |
| data | 16 bytes of data to write |
| OneWireIOException | Error writing data |
| OneWireException | Could not find part |
final byte CC_PIN_STATE_FLAG = 8 [static] |
PROTECTION REGISTER FLAG: Mirrors the !CC output pin.
Accessed with getFlag()
final byte CHARGE_ENABLE_FLAG = 2 [static] |
PROTECTION REGISTER FLAG: Reseting this flag will disable charging regardless of cell or pack conditions.
Accessed with getFlag()/setFlag()
.
final byte CHARGE_OVERCURRENT_FLAG = 32 [static] |
PROTECTION REGISTER FLAG: When this flag is true
the battery has experienced a charge-direction overcurrent condition.
This flag must be reset! Accessed with getFlag()
final byte DC_PIN_STATE_FLAG = 4 [static] |
PROTECTION REGISTER FLAG: Mirrors the !DC output pin.
Accessed with getFlag()
final byte DISCHARGE_ENABLE_FLAG = 1 [static] |
PROTECTION REGISTER FLAG: Reseting this flag will disable discharging.
Accessed with getFlag()/setFlag()
.
final byte DISCHARGE_OVERCURRENT_FLAG = 16 [static] |
PROTECTION REGISTER FLAG: When this flag is true
the battery has experienced a discharge-direction overcurrent condition.
This flag must be reset()
! Accessed with getFlag()
final byte EEPROM_BLOCK_0_LOCK_FLAG = 1 [static] |
EEPROM REGISTER FLAG: When this flag is true
, Block 0 of the EEPROM (addresses 32-47) is read-only.
Accessed with getFlag()
.
final byte EEPROM_BLOCK_1_LOCK_FLAG = 2 [static] |
EEPROM REGISTER FLAG: When this flag is true
, Block 1 of the EEPROM (addresses 48-63) is read-only.
Accessed with getFlag()
.
final byte EEPROM_COPY_FLAG = ( byte ) 128 [static] |
EEPROM REGISTER FLAG: This flag will be true
if the Copy Data Command is in progress.
Data may be written to EEPROM when this reads false
. Accessed with getFlag()/setFlag()
.
final byte EEPROM_LOCK_ENABLE_FLAG = 64 [static] |
EEPROM REGISTER FLAG: When this flag is true
, the Lock Command is enabled.
The lock command is used to make memory permanently read only. Accessed with getFlag()/setFlag()
.
final byte EEPROM_REGISTER = 7 [static] |
Address of the EEPROM Register.
Used to set/check flags with setFlag()/getFlag()
.
final byte OVERVOLTAGE_FLAG = ( byte ) 128 [static] |
PROTECTION REGISTER FLAG: When this flag is true
, it indicates that the battery pack has experienced an overvoltage condition.
This flag must be reset! Accessed with getFlag()
.
final byte PIO_PIN_SENSE_AND_CONTROL_FLAG = 64 [static] |
SPECIAL FEATURE REGISTER FLAG: Mirrors/sets the state of the PIO pin.
The PIO pin can be used as an output; resetting this flag disables the PIO output driver. Accessed with getFlag()/setFlag()
.
final byte PROTECTION_REGISTER = 0 [static] |
Address of the Protection Register.
Used to set/check flags with setFlag()/getFlag()
.
final byte PS_PIN_STATE_FLAG = ( byte ) 128 [static] |
SPECIAL FEATURE REGISTER FLAG: Mirrors the state of the !PS pin.
Accessed with getFlag()
.
final byte READ_NET_ADDRESS_OPCODE_FLAG = 16 [static] |
STATUS REGISTER FLAG: If set, the opcode for the Read Net Address command will be set to 33h.
If it is not set the opcode is set to 39h. Accessed with getFlag()/setFlag()
.
final byte SLEEP_MODE_ENABLE_FLAG = 32 [static] |
STATUS REGISTER FLAG: Enables/disables the DS2760 to enter sleep mode when the DQ line goes low for greater than 2 seconds.
Accessed with getFlag()/setFlag()
.
final byte SPECIAL_FEATURE_REGISTER = 8 [static] |
Address of the Special Feature Register (SFR).
Used to check flags with getFlag()
.
final byte STATUS_REGISTER = 1 [static] |
Address of the Status Register.
Used to set/check flags with setFlag()/getFlag()
.
final byte UNDERVOLTAGE_FLAG = 64 [static] |
PROTECTION REGISTER FLAG: When this flag is true
, the battery pack has experienced an undervoltage.
This flag must be reset! Accessed with getFlag()


Player doesn't work in IE or Opera
Select a button below to download an FLI or FLC animation file, then press Play.


Delightful - Trovebox Photo Viewer Press Kit
Delightful - Trovebox Photo Viewer in the App Store FREE: https://itunes.apple.com/us/app/delightful-trovebox-photo/id878230610
Website: http://www.getdelightfulapp.com
Source Code: https://github.com/delightfulapp/delightful
Delightful Review Guide http://getdelightfulapp.com/Delightful-Review-Guide.pdf
Nico Prananta @nicnocquee: https://twitter.com/nicnocquee
@delightfulapp: https://twitter.com/delightfulapp
Zip file of all screenshots and images for press: http://getdelightfulapp.com/Delightful-Press-Kit.zip
http://youtu.be/dgdIaANl20c


--- layout: post title: Expanding keywords tags: [] status: publish type: post published: true meta: {} ---
In my last work place we had this nifty stuff in place that updated the templates we were working on with version info, modification time and other bits and bobs, when the files were checked back into Visual Source Safe. I thought this was really handy to quickly review what had been happening to a template and that it would be a good idea to apply this in my new job as well. The first hurdle: enabling "it". Actually figuring out what "it", this technique, is called should have been my starting point. After some digging I finally stumbled across an article on MSDN and the answer: Enabling expanding keywords.
The info for enabling the keyword expansion can be found here. Essentially using this feature edits your ssafe.ini file and adds the following entry to it (note I work mainly with ColdFusion templates so that is why you see .cfm and .cfc file extensions):
Keyword_Masks = *.cfm,*.cfc
Close the SourceSafe Administrator and SourceSafe Explorer. Now you can re-start SourceSafe Explorer and the changes you made to your .ini file will have been read in and applied. Now all you need to do is add these keywords that are to be expanded to your development templates. A list can be seen here. In the end I settled for these and stuck them between <cfsetting> tags to suppress the output of white space:
<cfsetting enablecfoutputonly="yes" />
<!---
$Archive: $
$Author: $
$Date: $
$History: $
$Logfile: $
--->
<cfsetting enablecfoutputonly="no" />


|
Recombee API Client
|
Client for sending requests to Recombee and getting replies More...
Public Member Functions | |
| RecombeeClient (string databaseId, string secretToken, bool useHttpsAsDefault=true, string baseUri=null, int?port=null) | |
| Initialize the client More... | |
| async Task< StringBinding > | SendAsync (Request request) |
| StringBinding | Send (Request request) |
| StringBinding | ParseResponse (string json, Request request) |
| async Task< IEnumerable< Item > > | SendAsync (ListItems request) |
| IEnumerable< Item > | Send (ListItems request) |
| async Task< IEnumerable< User > > | SendAsync (ListUsers request) |
| IEnumerable< User > | Send (ListUsers request) |
| async Task< IEnumerable< Recommendation > > | SendAsync (UserBasedRecommendation request) |
| IEnumerable< Recommendation > | Send (UserBasedRecommendation request) |
| async Task< IEnumerable< Recommendation > > | SendAsync (ItemBasedRecommendation request) |
| IEnumerable< Recommendation > | Send (ItemBasedRecommendation request) |
| async Task< Item > | SendAsync (GetItemValues request) |
| Item | Send (GetItemValues request) |
| async Task< User > | SendAsync (GetUserValues request) |
| User | Send (GetUserValues request) |
| async Task< BatchResponse > | SendAsync (Batch request) |
| BatchResponse | Send (Batch request) |
| async Task< PropertyInfo > | SendAsync (GetItemPropertyInfo request) |
| Asynchronously send the GetItemPropertyInfo request More... | |
| PropertyInfo | Send (GetItemPropertyInfo request) |
| Synchronously send the GetItemPropertyInfo request More... | |
| async Task< IEnumerable< PropertyInfo > > | SendAsync (ListItemProperties request) |
| Asynchronously send the ListItemProperties request More... | |
| IEnumerable< PropertyInfo > | Send (ListItemProperties request) |
| Synchronously send the ListItemProperties request More... | |
| async Task< IEnumerable< Series > > | SendAsync (ListSeries request) |
| Asynchronously send the ListSeries request More... | |
| IEnumerable< Series > | Send (ListSeries request) |
| Synchronously send the ListSeries request More... | |
| async Task< IEnumerable< SeriesItem > > | SendAsync (ListSeriesItems request) |
| Asynchronously send the ListSeriesItems request More... | |
| IEnumerable< SeriesItem > | Send (ListSeriesItems request) |
| Synchronously send the ListSeriesItems request More... | |
| async Task< IEnumerable< Group > > | SendAsync (ListGroups request) |
| Asynchronously send the ListGroups request More... | |
| IEnumerable< Group > | Send (ListGroups request) |
| Synchronously send the ListGroups request More... | |
| async Task< IEnumerable< GroupItem > > | SendAsync (ListGroupItems request) |
| Asynchronously send the ListGroupItems request More... | |
| IEnumerable< GroupItem > | Send (ListGroupItems request) |
| Synchronously send the ListGroupItems request More... | |
| async Task< PropertyInfo > | SendAsync (GetUserPropertyInfo request) |
| Asynchronously send the GetUserPropertyInfo request More... | |
| PropertyInfo | Send (GetUserPropertyInfo request) |
| Synchronously send the GetUserPropertyInfo request More... | |
| async Task< IEnumerable< PropertyInfo > > | SendAsync (ListUserProperties request) |
| Asynchronously send the ListUserProperties request More... | |
| IEnumerable< PropertyInfo > | Send (ListUserProperties request) |
| Synchronously send the ListUserProperties request More... | |
| async Task< IEnumerable< DetailView > > | SendAsync (ListItemDetailViews request) |
| Asynchronously send the ListItemDetailViews request More... | |
| IEnumerable< DetailView > | Send (ListItemDetailViews request) |
| Synchronously send the ListItemDetailViews request More... | |
| async Task< IEnumerable< DetailView > > | SendAsync (ListUserDetailViews request) |
| Asynchronously send the ListUserDetailViews request More... | |
| IEnumerable< DetailView > | Send (ListUserDetailViews request) |
| Synchronously send the ListUserDetailViews request More... | |
| async Task< IEnumerable< Purchase > > | SendAsync (ListItemPurchases request) |
| Asynchronously send the ListItemPurchases request More... | |
| IEnumerable< Purchase > | Send (ListItemPurchases request) |
| Synchronously send the ListItemPurchases request More... | |
| async Task< IEnumerable< Purchase > > | SendAsync (ListUserPurchases request) |
| Asynchronously send the ListUserPurchases request More... | |
| IEnumerable< Purchase > | Send (ListUserPurchases request) |
| Synchronously send the ListUserPurchases request More... | |
| async Task< IEnumerable< Rating > > | SendAsync (ListItemRatings request) |
| Asynchronously send the ListItemRatings request More... | |
| IEnumerable< Rating > | Send (ListItemRatings request) |
| Synchronously send the ListItemRatings request More... | |
| async Task< IEnumerable< Rating > > | SendAsync (ListUserRatings request) |
| Asynchronously send the ListUserRatings request More... | |
| IEnumerable< Rating > | Send (ListUserRatings request) |
| Synchronously send the ListUserRatings request More... | |
| async Task< IEnumerable< CartAddition > > | SendAsync (ListItemCartAdditions request) |
| Asynchronously send the ListItemCartAdditions request More... | |
| IEnumerable< CartAddition > | Send (ListItemCartAdditions request) |
| Synchronously send the ListItemCartAdditions request More... | |
| async Task< IEnumerable< CartAddition > > | SendAsync (ListUserCartAdditions request) |
| Asynchronously send the ListUserCartAdditions request More... | |
| IEnumerable< CartAddition > | Send (ListUserCartAdditions request) |
| Synchronously send the ListUserCartAdditions request More... | |
| async Task< IEnumerable< Bookmark > > | SendAsync (ListItemBookmarks request) |
| Asynchronously send the ListItemBookmarks request More... | |
| IEnumerable< Bookmark > | Send (ListItemBookmarks request) |
| Synchronously send the ListItemBookmarks request More... | |
| async Task< IEnumerable< Bookmark > > | SendAsync (ListUserBookmarks request) |
| Asynchronously send the ListUserBookmarks request More... | |
| IEnumerable< Bookmark > | Send (ListUserBookmarks request) |
| Synchronously send the ListUserBookmarks request More... | |
| async Task< IEnumerable< ViewPortion > > | SendAsync (ListItemViewPortions request) |
| Asynchronously send the ListItemViewPortions request More... | |
| IEnumerable< ViewPortion > | Send (ListItemViewPortions request) |
| Synchronously send the ListItemViewPortions request More... | |
| async Task< IEnumerable< ViewPortion > > | SendAsync (ListUserViewPortions request) |
| Asynchronously send the ListUserViewPortions request More... | |
| IEnumerable< ViewPortion > | Send (ListUserViewPortions request) |
| Synchronously send the ListUserViewPortions request More... | |
| async Task< RecommendationResponse > | SendAsync (RecommendItemsToUser request) |
| Asynchronously send the RecommendItemsToUser request More... | |
| RecommendationResponse | Send (RecommendItemsToUser request) |
| Synchronously send the RecommendItemsToUser request More... | |
| async Task< RecommendationResponse > | SendAsync (RecommendUsersToUser request) |
| Asynchronously send the RecommendUsersToUser request More... | |
| RecommendationResponse | Send (RecommendUsersToUser request) |
| Synchronously send the RecommendUsersToUser request More... | |
| async Task< RecommendationResponse > | SendAsync (RecommendItemsToItem request) |
| Asynchronously send the RecommendItemsToItem request More... | |
| RecommendationResponse | Send (RecommendItemsToItem request) |
| Synchronously send the RecommendItemsToItem request More... | |
| async Task< RecommendationResponse > | SendAsync (RecommendUsersToItem request) |
| Asynchronously send the RecommendUsersToItem request More... | |
| RecommendationResponse | Send (RecommendUsersToItem request) |
| Synchronously send the RecommendUsersToItem request More... | |
| async Task< SearchResponse > | SendAsync (SearchItems request) |
| Asynchronously send the SearchItems request More... | |
| SearchResponse | Send (SearchItems request) |
| Synchronously send the SearchItems request More... | |
Protected Member Functions | |
| async Task< string > | SendRequestAsync (Request request) |
| string | SendRequest (Request request) |
| PropertyInfo | ParseResponse (string json, GetItemPropertyInfo request) |
| Parse JSON response More... | |
| IEnumerable< PropertyInfo > | ParseResponse (string json, ListItemProperties request) |
| Parse JSON response More... | |
| IEnumerable< Series > | ParseResponse (string json, ListSeries request) |
| Parse JSON response More... | |
| IEnumerable< SeriesItem > | ParseResponse (string json, ListSeriesItems request) |
| Parse JSON response More... | |
| IEnumerable< Group > | ParseResponse (string json, ListGroups request) |
| Parse JSON response More... | |
| IEnumerable< GroupItem > | ParseResponse (string json, ListGroupItems request) |
| Parse JSON response More... | |
| PropertyInfo | ParseResponse (string json, GetUserPropertyInfo request) |
| Parse JSON response More... | |
| IEnumerable< PropertyInfo > | ParseResponse (string json, ListUserProperties request) |
| Parse JSON response More... | |
| IEnumerable< DetailView > | ParseResponse (string json, ListItemDetailViews request) |
| Parse JSON response More... | |
| IEnumerable< DetailView > | ParseResponse (string json, ListUserDetailViews request) |
| Parse JSON response More... | |
| IEnumerable< Purchase > | ParseResponse (string json, ListItemPurchases request) |
| Parse JSON response More... | |
| IEnumerable< Purchase > | ParseResponse (string json, ListUserPurchases request) |
| Parse JSON response More... | |
| IEnumerable< Rating > | ParseResponse (string json, ListItemRatings request) |
| Parse JSON response More... | |
| IEnumerable< Rating > | ParseResponse (string json, ListUserRatings request) |
| Parse JSON response More... | |
| IEnumerable< CartAddition > | ParseResponse (string json, ListItemCartAdditions request) |
| Parse JSON response More... | |
| IEnumerable< CartAddition > | ParseResponse (string json, ListUserCartAdditions request) |
| Parse JSON response More... | |
| IEnumerable< Bookmark > | ParseResponse (string json, ListItemBookmarks request) |
| Parse JSON response More... | |
| IEnumerable< Bookmark > | ParseResponse (string json, ListUserBookmarks request) |
| Parse JSON response More... | |
| IEnumerable< ViewPortion > | ParseResponse (string json, ListItemViewPortions request) |
| Parse JSON response More... | |
| IEnumerable< ViewPortion > | ParseResponse (string json, ListUserViewPortions request) |
| Parse JSON response More... | |
| RecommendationResponse | ParseResponse (string json, RecommendItemsToUser request) |
| Parse JSON response More... | |
| RecommendationResponse | ParseResponse (string json, RecommendUsersToUser request) |
| Parse JSON response More... | |
| RecommendationResponse | ParseResponse (string json, RecommendItemsToItem request) |
| Parse JSON response More... | |
| RecommendationResponse | ParseResponse (string json, RecommendUsersToItem request) |
| Parse JSON response More... | |
| SearchResponse | ParseResponse (string json, SearchItems request) |
| Parse JSON response More... | |
Client for sending requests to Recombee and getting replies
|
inline |
Initialize the client
| databaseId | ID of the database. |
| secretToken | Corresponding secret token. |
| useHttpsAsDefault | If true, all requests are sent using HTTPS |
| baseUri | Custom URI of the recommendation API |
| port | Custom port of the recommendation API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inline |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inlineprotected |
Parse JSON response
| json | JSON string from the API |
| request | Request sent to the API |
|
inline |
Synchronously send the GetItemPropertyInfo request
| request | Request to be sent |
|
inline |
Synchronously send the ListItemProperties request
| request | Request to be sent |
|
inline |
|
inline |
Synchronously send the ListSeries request
| request | Request to be sent |
|
inline |
Synchronously send the ListSeriesItems request
| request | Request to be sent |
|
inline |
|
inline |
|
inline |
Synchronously send the ListGroups request
| request | Request to be sent |
|
inline |
Synchronously send the ListGroupItems request
| request | Request to be sent |
|
inline |
|
inline |
Synchronously send the GetUserPropertyInfo request
| request | Request to be sent |
|
inline |
|
inline |
Synchronously send the ListUserProperties request
| request | Request to be sent |
|
inline |
|
inline |
Synchronously send the ListItemDetailViews request
| request | Request to be sent |
|
inline |
Synchronously send the ListUserDetailViews request
| request | Request to be sent |
|
inline |
Synchronously send the ListItemPurchases request
| request | Request to be sent |
|
inline |
Synchronously send the ListUserPurchases request
| request | Request to be sent |
|
inline |
Synchronously send the ListItemRatings request
| request | Request to be sent |
|
inline |
Synchronously send the ListUserRatings request
| request | Request to be sent |
|
inline |
Synchronously send the ListItemCartAdditions request
| request | Request to be sent |
|
inline |
Synchronously send the ListUserCartAdditions request
| request | Request to be sent |
|
inline |
Synchronously send the ListItemBookmarks request
| request | Request to be sent |
|
inline |
Synchronously send the ListUserBookmarks request
| request | Request to be sent |
|
inline |
Synchronously send the ListItemViewPortions request
| request | Request to be sent |
|
inline |
Synchronously send the ListUserViewPortions request
| request | Request to be sent |
|
inline |
Synchronously send the RecommendItemsToUser request
| request | Request to be sent |
|
inline |
Synchronously send the RecommendUsersToUser request
| request | Request to be sent |
|
inline |
Synchronously send the RecommendItemsToItem request
| request | Request to be sent |
|
inline |
Synchronously send the RecommendUsersToItem request
| request | Request to be sent |
|
inline |
Synchronously send the SearchItems request
| request | Request to be sent |
|
inline |
Asynchronously send the GetItemPropertyInfo request
| request | Request to be sent |
|
inline |
Asynchronously send the ListItemProperties request
| request | Request to be sent |
|
inline |
|
inline |
Asynchronously send the ListSeries request
| request | Request to be sent |
|
inline |
|
inline |
|
inline |
Asynchronously send the ListSeriesItems request
| request | Request to be sent |
|
inline |
|
inline |
|
inline |
Asynchronously send the ListGroups request
| request | Request to be sent |
|
inline |
Asynchronously send the ListGroupItems request
| request | Request to be sent |
|
inline |
|
inline |
Asynchronously send the GetUserPropertyInfo request
| request | Request to be sent |
|
inline |
|
inline |
Asynchronously send the ListUserProperties request
| request | Request to be sent |
|
inline |
|
inline |
Asynchronously send the ListItemDetailViews request
| request | Request to be sent |
|
inline |
Asynchronously send the ListUserDetailViews request
| request | Request to be sent |
|
inline |
Asynchronously send the ListItemPurchases request
| request | Request to be sent |
|
inline |
Asynchronously send the ListUserPurchases request
| request | Request to be sent |
|
inline |
Asynchronously send the ListItemRatings request
| request | Request to be sent |
|
inline |
Asynchronously send the ListUserRatings request
| request | Request to be sent |
|
inline |
Asynchronously send the ListItemCartAdditions request
| request | Request to be sent |
|
inline |
Asynchronously send the ListUserCartAdditions request
| request | Request to be sent |
|
inline |
Asynchronously send the ListItemBookmarks request
| request | Request to be sent |
|
inline |
Asynchronously send the ListUserBookmarks request
| request | Request to be sent |
|
inline |
Asynchronously send the ListItemViewPortions request
| request | Request to be sent |
|
inline |
Asynchronously send the ListUserViewPortions request
| request | Request to be sent |
|
inline |
Asynchronously send the RecommendItemsToUser request
| request | Request to be sent |
|
inline |
Asynchronously send the RecommendUsersToUser request
| request | Request to be sent |
|
inline |
Asynchronously send the RecommendItemsToItem request
| request | Request to be sent |
|
inline |
Asynchronously send the RecommendUsersToItem request
| request | Request to be sent |
|
inline |
Asynchronously send the SearchItems request
| request | Request to be sent |
|
inlineprotected |
|
inlineprotected |


Tucson, AZ
GPhone# here
<EMAIL_ADDRESS>Follow us on Twitter
Suggest website changes
Content on this site is under the Creative Commons Zero v1.0 Universal license.


{% seo %}
{{ site.description | default: site.github.project_tagline }}
Click to authorize and login with Twitch and receive your token.
How to configure?
Copy and paste the above token into your OSRS Streamers plugin settings shown above.
Token expiration
This token will expire in 60 days - meaning you will have to do this process again in 60 days.
Why is this whole process necessary?


Ping-Pong
Week 3 Test: Arrays and Looping
Let's play!
Rules:
Ping Pong will count up to you number from 1 with the following exceptions:
- Numbers divisible by 3 become
"ping"
- Numbers divisible by 5 become
"pong"
- Numbers divisible by 3 and 5 become
"ping-pong"


fishing swimming blue effort catch crabs season fisheries gear Pangkajene catches fish crab {border-style CPUE number seasonal fishermen management px;} #ffffff;} Indonesia abundance dynamics Fisheries monthly total Marine index Kepulauan allocation Monthly average data dynamic increased season, trips Fig. Ministry South dry gears level maximum rainy value Affairs Kepulauan, order px; result waters {font-family (in Figure However, Indonesian Research Wiyono font-size landing mini model pelagicus) related size study Conversely, Furthermore, Portunus Schaefer analysed analysis based coastal double; efficiency highest lowest operate peak productivity rainfall relation sustainable traps water (Portunus .kg/trips Fishing July Life Table annual assessment boats border-color border-width capture collab: export fisherman indicated operated pelagicus salinity scale seasons small solid; stock using van wet year yield {font-style {font-weight (January) (MSY) (SI August Bahasa Cochrane Fisheries, Indonesia] January Kepulauan. MSY) Management Maximum Sulawesi, [in activity aggregated bold courier; days em; estimated fishery follows: gear. gillnets increase influence kg) measures objectives pt;} reduce regarding regards reported result, seasonally, seasonally. species standardised stocks tend trawler year, year. years,


服务热线
暂无
耽误您一点时间继续往下阅读来了解我们
Explain one of your product benefits here. Let users know how they can benefit using your product. It’s also a good idea to back it up with a testimonial or tweet from your users.
The original PSD of the graphic is included in the package. You can easily customise the PSD to meet your needs.
I find the mobile app very useful when I'm on the go. Sed ut perspiciatis unde omnis iste natus error sit voluptatem
@JackT, San Francisco
Explain one of your product benefits here. Let users know how they can benefit using your product. It’s also a good idea to back it up with a testimonial or tweet from your users.
The original PSD of the graphic is included in the package. You can easily customise the PSD to meet your needs.
Nice template! It’s practical and there is no gimmicks. Very easy to customise as well!
@AlexD, London
Explain one of your product benefits here. Let users know how they can benefit using your product. It’s also a good idea to back it up with a testimonial or tweet from your users.
The original PSD of the graphic is included in the package. You can easily customise the PSD to meet your needs.
I can connect to like-minded people lorem ipsum dolor sit amet, consectetuer adipiscing elit.
@JackT, San Francisco


This is the first paragraph.1
Some paragraph with a footnote5, and another6.
Another paragraph with a named footnote7.
This paragraph should not have a footnote marker since the footnote is undefined.[^3]
This paragraph should not have a footnote marker since the footnote has already been used before.[^1]
This paragraph links to a footnote with plenty of block-level content.8
This paragraph host the footnote reference within a footnote test9.
This is the first note. ↩
This is the second note. ↩
This is the third note, defined out of order. ↩
This is the fourth note. ↩
Content for fifth footnote. ↩
Content for sixth footnote spaning on three lines, with some span-level markup like emphasis, a link. ↩
Footnote beginning on the line next to the marker. ↩
Paragraph.
Blockquote
Code block
This footnote attemps to refer to another footnote. This should be impossible.[^impossible] ↩


If your browser has JavaScript enabled, synchronised captions will appear on the Video. Otherwise, a plaintext transcript with time markers will display below it.
This demonstration supplements the 360innovate blog post, and builds on work by Bruce Lawson, Philip Jägenstedt, and Daniel Davis. It reimplements their work as a jQuery plugin which aims to give front-end developers a consistent and easy to use API.
My add shows here


Ecognize is the first social network and collaboration platform for everybody working in or volunteering to help the planet: No matter if NGOs, law enforcement, academic researchers, intergovernmental organizations, or volunteers.
For volunteers
Report: Notify authorities and NGOs about environmental crimes and issues.
Connect: Contact other volunteers and organizations in your area. Find friends and use the open forums for collaboration.
Act: Find and organize events near you: cleanups, meetups, demonstrations, and many more.
For professionals and researchers
Cross-organization collaboration & communication: Private and shared forums where different organizations can meet and exchange information. Both in the same sphere (e.g. all NGOs in one country) and of different types (e.g., NGOs and law enforcement).
Volunteer outreach: Engage volunteers and recruit them for events or help.
Reporting & monitoring: Receive reports and intelligence from volunteers and local sources.


odu_i_instructions
Directions or instructions box
Answer the following items.
odu_i_mc_item
Multiple-choice
odu_i_fb_item Used for complete the sentence/statement activity odu_i_fb_mark_box Used for indicating correct or incorrect answer to a specific blank/box
odu_i_fi_item
Used for question and answer/identification activity
odu_i_cb_item
Multiple answer or checkbox multiple-choice
odu_i_table_area (div) Area for table odu_i_table_wborder (table) Actual table, used for complete the data table actvity odu_i_tbl_mark_box Indicator for correct/incorrect table entry
| Column Header | Column Header |
|---|---|
|
Answer to Row 1 Column 1 Cell 1
|
Answer to Row 1 Column 2 Cell 2
|
|
Answer to Row 2 Column 1 Cell 3
|
Answer to Row 2 Column 2 Cell 4
|
odu_i_panel
Basic panel, default panel
Good job! The selected choice: Selected Answer is correct!
odu_i_panel_success
Panel for correct answer
Good job! The selected choice: Selected Answer is correct!
odu_i_panel_error
Panel for incorrect answer
The selected choice: Selected Answer is incorrect!
odu_i_panel_retry, odu_i_panel_neutral
Panel for retry or for no correct and incorrect answer (e.g. open-ended activity)
The selected choice: Selected Answer is incorrect!
odu_i_panel_validate
Indicate unanswered items before submit.
odu_i_panel_attention
Used for providing common context in an activity such as problem statements
Problem statement paragraph
correct mark
✔
incorrect mark
✘
odu_i_button


Breadth First Circle CoSE-Bilkent Cola Grid Random Snap to grid Spread
Source
Result
Click here to see instructions. Developed and maintained by Hanzhi Zhou, based on Cytoscape.js


{% extends 'layouts/docs.html' %} {% set page = pages.base %} {% block content %}
Base element styles control native HTML elements such as headings, paragraphs, buttons, and forms in a systematic and opinionated way. These styles include typographical considerations and utilities derived from base elements, such as typefaces, the type scale, forms, and buttons.
{% for section in page.sections %}


The Ada’s Team executive committee is elected every April. The following are the committee members for the 2018-19 academic year:
| President: | Mandy Meindersma |
| VP Admin: | Chelsea Hong |
| VP Finance: | Bennett Hreherchuck |
| VP Events: | Xinyue Xiang |
| VP Promotions: | Diane Boytang |
| VP Outreach External: | Ashley Holgate |
| VP Outreach Internal: | Owen Mcleod |
| VP Conference External: | Helen Gezahegn |
| VP Conference Internal: | Katherine Mae Patenio |
| VP Conference Finance: | Amy Xiang |
| Mascot: | Ada Bot |


(Not documented)
# File lib/annotations_version_fu.rb, line 89 89: def check_for_new_version 90: instatiate_revision if create_new_version? 91: true # Never halt save 92: end
This the method to override if you want to have more control over when to version
# File lib/annotations_version_fu.rb, line 95 95: def create_new_version? 96: # Any versioned column changed? 97: self.class.versioned_columns.detect {|a| __send__ "#{a}_changed?"} 98: end
(Not documented)
# File lib/annotations_version_fu.rb, line 85 85: def find_version(number) 86: versions.find :first, :conditions=>{:version=>number} 87: end
(Not documented)
# File lib/annotations_version_fu.rb, line 100 100: def instatiate_revision 101: new_version = versions.build 102: versioned_columns.each do |attribute| 103: new_version.__send__ "#{attribute}=", __send__(attribute) 104: end 105: version_number = new_record? ? 1 : version + 1 106: new_version.version = version_number 107: self.version = version_number 108: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.


|
Writes the contents of registers EDX:EAX into the 64-bit model specific register (MSR) specified in the ECX register. The input value loaded into the ECX register is the address of the MSR to be written to. The contents of the EDX register are copied to high-order 32 bits of the selected MSR and the contents of the EAX register are copied to low-order 32 bits of the MSR. Undefined or reserved bits in an MSR should be set to the values previously read.
This instruction must be executed at privilege level 0 or in real-address mode; otherwise, a general protection exception #GP(0) will be generated. Specifying a reserved or unimplemented MSR address in ECX will also cause a general protection exception. The processor may also generate a general protection exception if software attempts to write to bits in an MSR marked as Reserved.
When the WRMSR instruction is used to write to an MTRR, the TLBs are invalidated, including the global entries (see "Translation Lookaside Buffers (TLBs)" in Chapter 3 of the IA-32 Intel Architecture Software Developer's Manual, Volume 3).
The MSRs control functions for testability, execution tracing, performance-monitoring and machine check errors. Appendix B, Model-Specific Registers (MSRs), in the IA-32 Intel Architecture Software Developer's Manual, Volume 3, lists all the MSRs that can be read with this instruction and their addresses. Note that each processor family has its own set of MSRs.
The WRMSR instruction is a serializing instruction (see "Serializing Instructions" in Chapter 8 of the IA-32 Intel Architecture Software Developer's Manual, Volume 3).
The CPUID instruction should be used to determine whether MSRs are supported (EDX[5]=1) before using this instruction.
|


/* This file is part of Ext JS 4 Copyright (c) 2011 Sencha Inc Contact: http://www.sencha.com/contact Commercial Usage Licensees holding valid commercial licenses may use this file in accordance with the Commercial Software License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Sencha. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. */ /** * A {@link Ext.form.FieldContainer field container} which has a specialized layout for arranging * {@link Ext.form.field.Radio} controls into columns, and provides convenience {@link Ext.form.field.Field} * methods for {@link #getValue getting}, {@link #setValue setting}, and {@link #validate validating} the * group of radio buttons as a whole. * * # Validation * * Individual radio buttons themselves have no default validation behavior, but * sometimes you want to require a user to select one of a group of radios. RadioGroup * allows this by setting the config `{@link #allowBlank}:false`; when the user does not check at * one of the radio buttons, the entire group will be highlighted as invalid and the * {@link #blankText error message} will be displayed according to the {@link #msgTarget} config.</p> * * # Layout * * The default layout for RadioGroup makes it easy to arrange the radio buttons into * columns; see the {@link #columns} and {@link #vertical} config documentation for details. You may also * use a completely different layout by setting the {@link #layout} to one of the other supported layout * types; for instance you may wish to use a custom arrangement of hbox and vbox containers. In that case * the Radio components at any depth will still be managed by the RadioGroup's validation. * * # Example usage * * @example * Ext.create('Ext.form.Panel', { * title: 'RadioGroup Example', * width: 300, * height: 125, * bodyPadding: 10, * renderTo: Ext.getBody(), * items:[{ * xtype: 'radiogroup', * fieldLabel: 'Two Columns', * // Arrange radio buttons into two columns, distributed vertically * columns: 2, * vertical: true, * items: [ * { boxLabel: 'Item 1', name: 'rb', inputValue: '1' }, * { boxLabel: 'Item 2', name: 'rb', inputValue: '2', checked: true}, * { boxLabel: 'Item 3', name: 'rb', inputValue: '3' }, * { boxLabel: 'Item 4', name: 'rb', inputValue: '4' }, * { boxLabel: 'Item 5', name: 'rb', inputValue: '5' }, * { boxLabel: 'Item 6', name: 'rb', inputValue: '6' } * ] * }] * }); * */ Ext.define('Ext.form.RadioGroup', { extend: 'Ext.form.CheckboxGroup', alias: 'widget.radiogroup', /** * @cfg {Ext.form.field.Radio[]/Object[]} items * An Array of {@link Ext.form.field.Radio Radio}s or Radio config objects to arrange in the group. */ /** * @cfg {Boolean} allowBlank True to allow every item in the group to be blank. * If allowBlank = false and no items are selected at validation time, {@link #blankText} will * be used as the error text. */ allowBlank : true, /** * @cfg {String} blankText Error text to display if the {@link #allowBlank} validation fails */ blankText : 'You must select one item in this group', // private defaultType : 'radiofield', // private groupCls : Ext.baseCSSPrefix + 'form-radio-group', getBoxes: function() { return this.query('[isRadio]'); }, /** * Sets the value of the radio group. The radio with corresponding name and value will be set. * This method is simpler than {@link Ext.form.CheckboxGroup#setValue} because only 1 value is allowed * for each name. * * @param {Object} value The map from names to values to be set. * @return {Ext.form.CheckboxGroup} this */ setValue: function(value) { var me = this; if (Ext.isObject(value)) { Ext.Object.each(value, function(name, cbValue) { var radios = Ext.form.RadioManager.getWithValue(name, cbValue); radios.each(function(cb) { cb.setValue(true); }); }); } return me; } });


Purple, a QueryPoint Debugger for Web Pages
Purple runs your Web application in an enhanced Web browser with special new powers(*):
- Supports Powerful Proposed ECMAScript Language Features
- Instant Live Updates from Source Integrated with Online Web Development
- Next Generation QueryPoint Debugging for JavaScript
Let's Go!
- Enter the URL for your Web Site in the input box
- Click "Load Web Application"
- This window will convert into the debugger, and new window will open with your web app.
- Hopefully there will be more instructions here when I figure them out
(*) Ok some of these powers are still under development


CKI (Circle K International) is an organization at the collegiate and university levels. Each CKI club is sponsored by a Kiwanis club, who also sponsor Key club at the high school level. The main focus of CKI is to promote community service, leadership development, as well as fellowship and friendship. CKI blends community service and leadership training with the opportunity to meet other college students around the world. Projects such as the Six Cents Initiative, CKI’s International fundraiser that aims to provide water to the 2.2 billion children worldwide who lack safe drinking water, bring CKI members together to make a difference in the world.
Developing college and university students into a global network of responsible citizens and leaders with a lifelong commitment to service.
I pledge to uphold the Objects of Circle K International, to foster compassion and goodwill toward others through service and leadership, to develop my abilities and the abilities of all people, and to dedicate myself to the realization of mankind’s potential!
Live to Serve, Love to Serve!


{% extends "silpa.html" %} {% block modulescript %} {% endblock %} {% block content %}
Soundex Phonetic Code Algorithm Demo for Indian Languages. Supports all indian languages and English. Provides intra-indic string comparison
This service provides indic soundex algorithm based soundex codes for a word
>>>print silpaService.soundex.soundex("കാര്ത്തിക്") കAPKKBF0 >>>print silpaService.soundex.compare("കാര്ത്തിക്","கார்திக்") 2


Week 7: Social and Global Class
8 October, 2021
Levi Sands
Class Business
Essay Quiz 1: Things to remember for next time
- Don't forget a title
- Intro paragraph and concluding paragraph relate to each other and to main body text.
- One paragraph per chapter covered.
- (Many) More use of soc terms and defining them briefly in context of the chapters covered on the quiz
- Remember: Don't worry much about editing. I'm not an English teacher I just want you go get your point across. The more detail you give me the more likely it'll be that you get your point across.
- Relating soc concepts to personal experience (show me insight).
Early Ideas of Inequality
- Karl Marx and conflict theory - Economic Foundation, class division and class conflict
- Max Weber - Power, Prestige, and Wealth
- Power - The chance of an individual or group to realize their will in social action,
even when faced with opposition from others
- Prestige - The respect or standing that an individual obtains through appointment or
accomplishment
- Wealth - Property, Income
Marx vs Weber
Class according according to Marx
Marx vs Weber
Class according to Weber
American Class System
- Dimensions of Class
- Economic
- Income/Wealth
- Occupation Prestige
- Education
- Behavioral
- Patterns of Speech
- Material Items
- Tastes (music, clothing, electronics, etc.)
- Leisure Activities
Source: US Census Bureau
Source: US Census Bureau
Perception of The american class system
Class Definitions
- Upper - (the 1%) more than 1 M
- Upper Middle - 18-20% 80 k to 1 M
- Lower Middle - 25-30% 45-80 k
- Working Class - 25-30% 30-45 k
- Working Poor - 12-15% 15-30 k
- Underclass - 9-12% Less Than 15 k
- 4-Y & Post Grads
- 4-Y & Post Grads
- HS & Some College
- HS
- Some HS
- Some HS
Don't Forget Job Status
Wealth and Housing
- Investment Firms Aren’t Buying All the Houses. But They Are Buying the Most Important Ones. (Slate)
- Spiders, sewage and a flurry of fees – the other side of renting a house from Wall Street (Reuters)
- How corporations are buying up houses — robbing families of the American Dream (New York Post)
- Increasing prices of housing due to many factors (NIMBI, zoning, not building affordable housing, environmental studies)
- Family wealth is driven in large part by home ownership
- Many fewer individuals and families own their own homes leading to lower wealth
What can we do about poverty and inequality?
(briefly discuss in your groups, we will then discuss as a class)
- What responsibilities do we have for helping the poor in our country?
- Is income inequality an issue?
- Our country spends under 1% of our annual budget on foreign aid (source: Center for global
development). Is this enough? Should it be less?
Group Activity
Write names of group members here today then email Levi and CC everyone in your group. For as many of the following terms as you can write down information in this format: Associated person - Create a brief definition - personal example (a couple of sentences)
- absolute poverty
- colonialism
- commodity chain
- core countries
- dependency theory
- extreme poverty
- gender inequality index
- Gini coefficient
- global stratification
- gross national income (Gni)
- international division of labor
- modernization theory
- multidimensional poverty index
- multinational corporations
- neocolonialism
- peripheral countries
- relative poverty
- semiperipheral countries
- terrorism
- world cities
- world systems theory


private fun getDialogOptions(): Array<String>
Returns a list of options for the actions that can be invoked on the dialog.
See Also
STANDARD_OPTIONS_TEXT_RES


Package com.dragonboat.game
Class DragonBoatGame
- java.lang.Object
-
- com.dragonboat.game.DragonBoatGame
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class DragonBoatGame extends java.lang.Object implements com.badlogic.gdx.Screen
Game Class for Dragon Boat Game.
Initialises all the objects necessary for the game, starts music, creates Lanes, randomises Obstacle spawns, initialises blank Player and Opponents, initialises a Progress Bar and Leaderboard, and instantiates a Menu Screen.
- See Also:
MenuScreen
-
-
Field Summary
Fields Modifier and Type Field Description int[]
boatLanes
Course
course
protected boolean
debug_norandom
protected boolean
debug_positions
protected boolean
debug_speed
protected boolean
debug_verboseoutput
boolean
ended
com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator
generator
Lane[]
lanes
Leaderboard
leaderboard
com.badlogic.gdx.audio.Music
music
java.util.ArrayList<java.lang.Integer>[]
obstacleTimes
Opponent[]
opponents
com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.FreeTypeFontParameter
parameter
Player
player
int
playerChoice
ProgressBar
progressBar
protected java.util.Random
rnd
StartGame
stGame
-
Constructor Summary
Constructors Constructor Description DragonBoatGame(StartGame start, boolean loaded)
--ASSESSMENT 2-- Sets up the game with settings and instantiation of objects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
advanceLeg()
Changes the screen to a new GameScreen and resets necessary attributes.void
dispose()
Disposes of the current screen when it's no longer needed.void
endGame()
int
getDifficulty()
--ASSESSMENT 2--java.util.ArrayList<Obstacle>
getObstacles()
--ASSESSMENT 2-- Gets a list of all obstacles across the lanes.int
getStartDifficulty()
--ASSESSMENT 2--void
hide()
void
init()
void
launch()
--ASSESSMENT 2-- Launches the game to the menu screen.static DragonBoatGame
makeDragonBoatGame(java.util.HashMap<java.lang.String,java.lang.Object> data, StartGame startGame)
--ASSESSMENT 2-- Creates an instance from the data passed.void
pause()
void
render(float deltaTime)
void
resize(int width, int height)
Resizes the game screen.void
resume()
boolean
setDifficulty(int newDifficulty)
--ASSESSMENT 2-- Sets the difficulty.void
setScreen(com.badlogic.gdx.Screen screen)
--ASSESSMENT 2--boolean
setStartDifficulty(int newStartDifficulty)
--ASSESSMENT 2-- Sets the start difficultyvoid
show()
void
step()
java.lang.String
toJSON()
--ASSESSMENT 2-- Converts data about the instance into JSON so it can be recreated later.
-
-
-
Field Detail
-
debug_speed
protected boolean debug_speed
-
debug_positions
protected boolean debug_positions
-
debug_norandom
protected boolean debug_norandom
-
debug_verboseoutput
protected boolean debug_verboseoutput
-
stGame
public StartGame stGame
-
lanes
public Lane[] lanes
-
player
public Player player
-
course
public Course course
-
opponents
public Opponent[] opponents
-
boatLanes
public int[] boatLanes
-
progressBar
public ProgressBar progressBar
-
leaderboard
public Leaderboard leaderboard
-
obstacleTimes
public java.util.ArrayList<java.lang.Integer>[] obstacleTimes
-
playerChoice
public int playerChoice
-
music
public com.badlogic.gdx.audio.Music music
-
ended
public boolean ended
-
generator
public com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator generator
-
parameter
public com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.FreeTypeFontParameter parameter
-
rnd
protected java.util.Random rnd
-
-
Constructor Detail
-
DragonBoatGame
public DragonBoatGame(StartGame start, boolean loaded)
--ASSESSMENT 2-- Sets up the game with settings and instantiation of objects.
-
-
Method Detail
-
init
public void init()
-
launch
public void launch()
--ASSESSMENT 2-- Launches the game to the menu screen.
-
advanceLeg
public void advanceLeg()
Changes the screen to a new GameScreen and resets necessary attributes.
-
getStartDifficulty
public int getStartDifficulty()
--ASSESSMENT 2--- Returns:
- Int representing the start difficulty.
-
setStartDifficulty
public boolean setStartDifficulty(int newStartDifficulty)
--ASSESSMENT 2-- Sets the start difficulty- Parameters:
newStartDifficulty
- Integer greater than 0.- Returns:
- Boolean representing if the start difficulty was set.
-
getDifficulty
public int getDifficulty()
--ASSESSMENT 2--- Returns:
- Int representing the difficulty.
-
setDifficulty
public boolean setDifficulty(int newDifficulty)
--ASSESSMENT 2-- Sets the difficulty.- Parameters:
newDifficulty
- Integer greater than 0.- Returns:
- Boolean representing if the difficulty was set.
-
getObstacles
public java.util.ArrayList<Obstacle> getObstacles()
--ASSESSMENT 2-- Gets a list of all obstacles across the lanes.- Returns:
- ArrayList representing all the obstacles on the game screen.
-
setScreen
public void setScreen(com.badlogic.gdx.Screen screen)
--ASSESSMENT 2--- Parameters:
screen
- The game screen to be set.
-
step
public void step()
-
endGame
public void endGame()
-
render
public void render(float deltaTime)
- Specified by:
render
in interfacecom.badlogic.gdx.Screen
-
resize
public void resize(int width, int height)
Resizes the game screen.- Specified by:
resize
in interfacecom.badlogic.gdx.Screen
- Parameters:
width
- Width of the screen.height
- Height of the screen.
-
pause
public void pause()
- Specified by:
pause
in interfacecom.badlogic.gdx.Screen
-
resume
public void resume()
- Specified by:
resume
in interfacecom.badlogic.gdx.Screen
-
hide
public void hide()
- Specified by:
hide
in interfacecom.badlogic.gdx.Screen
-
show
public void show()
- Specified by:
show
in interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()
Disposes of the current screen when it's no longer needed.- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
-
toJSON
public java.lang.String toJSON()
--ASSESSMENT 2-- Converts data about the instance into JSON so it can be recreated later.- Returns:
- JSON string storing the instance's info.
-
makeDragonBoatGame
public static DragonBoatGame makeDragonBoatGame(java.util.HashMap<java.lang.String,java.lang.Object> data, StartGame startGame)
--ASSESSMENT 2-- Creates an instance from the data passed.- Parameters:
data
- HashMap storing data about an instance, likely gained by converting an instance to JSON firststartGame
- StartGame representing the start of a game.
-
-


Before Change
the first matching unit (which will typically be the unscaled
version).
matching = filter(lambda o: have_same_dimensions(o, x), self.objs)
if len(matching) == 0:
raise KeyError("Unit not found in registry.")
// count the number of entries well represented by this unit
floatreps = np.asarray(map(lambda o:
After Change
// count the number of entries well represented by this unit
matching_values = np.asarray(matching)
x_flat = np.asarray(x).flatten()
floatreps = np.tile(x_flat, (len(matching), 1)).T / matching_values
good_reps = np.sum((floatreps >= 0.1) & (floatreps < 1000), axis=0)
if any(good_reps):
return matching[good_reps.argmax()]
else:
return matching[0]


Modifying Functions
modify-argument
The modify-argument node specifies which of the given function’s arguments the modification affects, and is a child of the modify-function node. Use the remove-argument, replace-default-expression, remove-default-expression, replace-type, reference-count and define-ownership nodes to specify the details of the modification.
<modify-function> <modify-argument index="return | this | 1 ..." rename="..."> // modifications </modify-argument> </modify-function>Set the
index
attribute to “1” for the first argument, “2” for the second one and so on. Alternatively, set it to “return” or “this” if you want to modify the function’s return value or the object the function is called upon, respectively.The optional
rename
attribute is used to rename a argument and use this new name in the generated code.


CNIT 133
JavaScript
Home
Basic Ops
Functions
Loops
Arrays
Objects
jQuery
Ajax
Part 2 - sum, average, product, min and max
First Integer:
Second Integer:
Third Integer:
Results:


The product of a scalar value with all components of this matrix.
Concatenate (multiply) a matrix (on the right) with this matrix.
Post-multiplying a column vector by the matrix.
The addition of a scalar value to all components of this matrix.
The subtraction of a scalar value from all components of this matrix.
The quotient of dividing all components of this matrix by a scalar value.
Add the component values of the matrix starting at the current position to given native array.
Add the component values (as Floats) of the matrix starting at the current position to given native array.
Find the adjoint of this matrix.
Find the adjoint of this matrix.
The adjoint is the transpose of the cofactors matrix.
A method that should be called from every well-designed equals method that is open to be overridden in a subclass.
Find the cofactor of the given cell (column, row) of this matrix.
Find the cofactor of the given cell (column, row) of this matrix.
The cofactor of a cell is the minor in which the sign of the result is determined by whether the sum of the column and row indices in the original matrix is even (unchanged) or odd (flipped).
Find the matrix of cofactors of this matrix.
Concatenate (multiply) a matrix (on the right) with this matrix.
Find the determinant of this matrix.
The component-wise comparison of whether the given matrix is within a type specific epsilon of this matrix.
The component-wise comparison of whether the given matrix is within a given epsilon of this matrix.
Tests whether the given predicate holds true for all of the corresponding components of this and the given matrix.
Tests whether the given predicate holds true for all components of this matrix.
Tests whether the given predicate holds true for any of the corresponding components of this and the given matrix.
Tests whether the given predicate holds true for any components of this matrix.
Applies a function to all components of this matrix.
Applies a function to all components of this matrix.
The function that is applied for its side-effect to every component.
Find the inverse (if possible) of this matrix.
Whether the matrix has an inverse (is non-singular).
Whether any of the matrix components are Not-a-Number (NaN).
Builds a new matrix by applying a function to each component of this matrix.
Find the minor of the given cell (column, row) of this matrix.
Find the minor of the given cell (column, row) of this matrix.
The minor is the determinant of the (N-1)x(N-1) matrix which remains when the row and column of the given cell are removed from the original NxN matrix.
Find the matrix of minors of this matrix.
Add the component values of the matrix starting at the current position to given native array.
Add the component values (as Floats) of the matrix starting at the current position to given native array.
The number of rows/columns.
The number of rows/columns. *
Convert to a nested array.
Convert to a nested list
Find the transpose of this matrix.
Post-multiplying a column vector by the matrix.
Apply the given function to a native array filled with the values from this matrix.
Apply the given function to a native array filled with the values (as Floats) from this matrix.
An immutable square matrix.


Py2Web is an utility for people who create webpages.
It allows embedding chess problems viewer into the webpages in a way similar to that in which the PGN viewers work.
The difference is that Py2Web supports many features that PGN viewers don't, e.g.: idling (set-play, threat, series-movers),
twins, fairy pieces, fairy effects (rebirth, piece color change etc).
Demo
Example #3 problem by V. Chepizhny >>153689. Feel free to test your problems.
Starting position
in popeye 'Pieces' clause format:
Solution
in popeye output format with optional {comments}:
(Protip: you can copy and paste both fields from olive)
(Protip2: click right/left parts of the diagram to play the solution forward/backward)
More examples
Something more complicated. View this page source to check the syntax (it is 100% popeye output format).
Twins, promotions, rebirth and promotion as result of the rebirth
C. J. Feather
Fairings (28/5), 2012-11
white Pb3 Bg1 Ra4 Ka2
black Pb6h2a3g7b5 Sb2f5 Bc5d7 Kd4 Re4
h#2
CouscousCirce + Isardam
b) bPg7→g4
a)
1.h2*g1=Q[+wBd8] Ra4-c4 2.Bc5-f8 Bd8*b6[+bPc1=Q] #
b) bPg7-->g4
1.Sb2*a4[+wRg8] Bg1-e3 2.Re4-e7 Rg8*g4[+bPh1=S] #
Fairy piece (nightrider), T&M notation, color change, kobul king
You can temporary hide solution from solvers, it is stil working.
P. Tritten & D. Turevski
Julia's fairies, 2013/I, 7th Prize ded. to D. Kostadinov
Note how empty comments are used to add linebreaks. Also you can add any static HTML in comments.
Diamond-shaped rook-locust illustrates the usage of the glyphs attribute (see "Usage" below, here glyphs='{"lr":"d"}').
Py2Web shrinked the solution from 29 lines output by Popeye down to 5 (well, ok, 7). Also using "notation" attribute (new in 0.14.10) to display the solution in figurine notation.
A. Selivanov
JT V. Kopyl- 50, 2007
1st Prize
white Qc2 Rh6e8 Ke1 Bf5h8 Sb2h5
black Pg2e2g3 Kd5 Bf1
This is what you add to the <body> part of your document where you want the diagram and solution widgets to be displayed:
<divclass="p2w-diagram"id="myUniqueId"glyphs='{"g":"q1","du":"p2"}'>
[Starting position (in popeye 'Pieces' clause format)]
</div><divclass="p2w-solution"target="myUniqueId"full-move="wb"start-node="first"notation='{"S":"N"}'>
[Solution (in popeye output format)]
</div>
.p2w-diagram attributes:
id - (required) element identifier
glyphs - (optional) changes the default representation of pieces, in JSON. In example above Grasshoppers will be displayed as queens rotated 90 deg (default is 180 deg) and Dummies will be displayed as upside-down pawns (instead of X-s).
fen - (optional) starting position in Forsyth-Edwards notation. When present, the contents of the p2w-diagram are ignored.
.p2w-solution attributes:
target - (required) the id of the corresponding .p2w-diagram
full-move - (optional) attribute may be either "wb" (for direct problems and hs*) or "bw" (for helpmates and series-helpmates). In most cases it can be omitted, but not when there's castling in the solution.
start-node - (optional) attribute may be either "first" (this is default) or "last" (to display proofgames).
notation - (optional) attribute similar to glyphs attribute, but used in solution.
capture-glyph - (optional) symbol used to indicate capture (default is small latin letter "x").
Py2Web defines one useful JS method that you can call on your pages if you need more dynamics and flexibility.
Py2Web.init(selector)
It has no return value. It iterates through all children of the selector that have class .p2w-solution and replaces their content with the solution widget while also replacing the content of the corresponding .p2w-diagram elements with the diagram widget.
As you already may have guessed Py2Web calls
Py2Web.init('body')
when the page has loaded. However, you can load problem content dynamically into some container later and then call
Py2Web.init(container)
The live demo at the top of this page works in exactly this way. It dynamically creates .p2w-solution and .p2w-diagram elements
based on values in the textboxes, nests them within '#demo' div and then calls Py2Web.init('#demo'). Here's the actual source code, jQuery-style:
Starting from version 0.14.10 you can change the default behaviour of Py2Web with some special comments:
{display-departure-square} - comment placed after a move would force Py2Web to include the departure square into the move text representation (e.g. Ba1-e5, instead of Be5). Also available are {display-departure-file} and {display-departure-rank}
Error handling
Is minimal as of yet. Syntax and semantic errors (if any) are logged in the javascript console. If something isn't working - check console (Ctrl+Shift+J in Chrome and FF).
Under the hood
Py2Web is a free software with open source code.
The parser part of the Py2Web is written in JS/CC which is a lexer/parser generator.
You may need to have a general knowledge of what a compiler-compiler is.


Create your exercise list
Write an exercise or add it from the list:
Add
{{ ex }}
{{ ex.name }}
×
Continue
Do your workout
{{ ex.name }}
Next exercise
Great job!
{{ nextExercise.timeInMilli | date:'mm:ss -' }}
Do {{ nextExercise.reps }} {{ nextExercise.name }}
Take a rest and continue when you are ready
Workout results
Total time: {{ totalTime | date:'mm:ss' }}
Exercise
Total reps
{{ ex.name }}
{{ ex.totalReps }}
History
Exercise
Reps
Start time
{{ex.name}}
{{ex.reps}}
{{ex.timeInMilli | date : 'mm:ss' }}


Responsible for creating instances of \Altamira\ChartDatum\TwoDimensionalPoint
| author | relwell |
|---|---|
| package | ChartDatum |
getFromNested(array $nestedArray, array $result) : \Altamira\ChartDatum\TwoDimensionalPoint
Passing an array will append the results to an existing array. Therefore, you providing the following array:
array( array( 10, 8 ), array( 11, 24 ), array( 0.3341,<PHONE_NUMBER> ) )
will yield the following two-dimensional points (as {x,y}):
[{10, 8}, {11, 24}, {0.3341,<PHONE_NUMBER>}]
array
array
getFromXValues(array $oneDimensionalArray, array | null $result) : array
Adds one to each Y value as array index. X value is array value. Passing an array will append the results to an existing array. In other words, providing the following array:
array( 5, 10, 15, 20, 25 )
will yield the following coordinates (as {x,y}):
[{5,1}, {10,2}, {15,3}, {20,4}, {25,5}]
For more freedom over value relationships, use getFromNested.
array
array
null
array
of \Altamira\ChartDatum\TwoDimensionalPointgetFromYValues(array $oneDimensionalArray, array | null $result) : array
Adds one to each X value as array index. Y value is array value. Passing an array will append the results to an existing array. In other words, providing the following array:
array( 5, 10, 15, 20, 25 )
will yield the following coordinates (as {x,y}):
[{1,5}, {2,10}, {3,15}, {4,20}, {5,25}]
For more freedom over points, use getFromNested.
array
array
null
array
of \Altamira\ChartDatum\TwoDimensionalPoint


Davenport West Athletics
9th Boys Basketball
Varsity Boys Basketball Schedule
Girls Basketball
Boys Swimming Schedule
Bowling
Wrestling