org.vrprep.model.instance
Class UncertainParameterType

java.lang.Object
  extended by org.vrprep.model.instance.UncertainParameterType

public class UncertainParameterType
extends Object

Defines a parameter which value is uncertain (e.g., stochastic travel time or stochastic demand)

Java class for uncertain_parameter_type complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="uncertain_parameter_type">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice>
         <element ref="{}random_variable"/>
         <element name="scenario" maxOccurs="unbounded" minOccurs="2">
           <complexType>
             <simpleContent>
               <extension base="<http://www.w3.org/2001/XMLSchema>double">
                 <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
                 <attribute name="probability" use="required" type="{}probability" />
               </extension>
             </simpleContent>
           </complexType>
         </element>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 


Nested Class Summary
static class UncertainParameterType.Scenario
          Java class for anonymous complex type.
 
Field Summary
protected  RandomVariableType randomVariable
           
protected  List<UncertainParameterType.Scenario> scenario
           
 
Constructor Summary
UncertainParameterType()
           
 
Method Summary
 RandomVariableType getRandomVariable()
          Gets the value of the randomVariable property.
 List<UncertainParameterType.Scenario> getScenario()
          Gets the value of the scenario property.
 void setRandomVariable(RandomVariableType value)
          Sets the value of the randomVariable property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

randomVariable

protected RandomVariableType randomVariable

scenario

protected List<UncertainParameterType.Scenario> scenario
Constructor Detail

UncertainParameterType

public UncertainParameterType()
Method Detail

getRandomVariable

public RandomVariableType getRandomVariable()
Gets the value of the randomVariable property.

Returns:
possible object is RandomVariableType

setRandomVariable

public void setRandomVariable(RandomVariableType value)
Sets the value of the randomVariable property.

Parameters:
value - allowed object is RandomVariableType

getScenario

public List<UncertainParameterType.Scenario> getScenario()
Gets the value of the scenario property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the scenario property.

For example, to add a new item, do as follows:

    getScenario().add(newItem);
 

Objects of the following type(s) are allowed in the list UncertainParameterType.Scenario



Copyright © 2014 VRP-REP. All rights reserved.