FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.benchmarks.auctions.xcsp.Domain Class Reference

This class is used to generate the 'domain' tags in the output XML file. More...

Inheritance diagram for frodo2.benchmarks.auctions.xcsp.Domain:

Public Member Functions

 Domain (String name, int lowerBound, int upperBound)
 The constructor first calls the super class constructor to define the name of the tag this class represents.
void create ()
 This method adds the instance variables as attributes, so they will appear in the 'domain' XML tag.

Private Attributes

String name
 Name of the domain.
int lowerBound
 Lower bound of the domain.
int upperBound
 Upper bound of the domain.

Static Private Attributes

static final long serialVersionUID = 8501853959023776972L
 Classes extending Element should declare a serial Version UID.

Detailed Description

This class is used to generate the 'domain' tags in the output XML file.

Author
Andreas Schaedeli

Constructor & Destructor Documentation

◆ Domain()

frodo2.benchmarks.auctions.xcsp.Domain.Domain ( String name,
int lowerBound,
int upperBound )

The constructor first calls the super class constructor to define the name of the tag this class represents.

Furthermore, it assigns values to all the instance variables

Parameters
nameName of the domain
lowerBoundLower bound of the domain
upperBoundUpper bound of the domain

References lowerBound, name, and upperBound.

Member Function Documentation

◆ create()

void frodo2.benchmarks.auctions.xcsp.Domain.create ( )

This method adds the instance variables as attributes, so they will appear in the 'domain' XML tag.

The domain is represented by lowerBound..upperBound, e.g. 2..5

References lowerBound, name, and upperBound.

Member Data Documentation

◆ lowerBound

int frodo2.benchmarks.auctions.xcsp.Domain.lowerBound
private

Lower bound of the domain.

Referenced by create(), and Domain().

◆ name

String frodo2.benchmarks.auctions.xcsp.Domain.name
private

Name of the domain.

Referenced by create(), and Domain().

◆ serialVersionUID

final long frodo2.benchmarks.auctions.xcsp.Domain.serialVersionUID = 8501853959023776972L
staticprivate

Classes extending Element should declare a serial Version UID.

◆ upperBound

int frodo2.benchmarks.auctions.xcsp.Domain.upperBound
private

Upper bound of the domain.

Referenced by create(), and Domain().


The documentation for this class was generated from the following file: