You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
custom_mark10
import java.util.List;
/**************************
*@opt inferrel
*@opt collpackages java.util.*
*@opt inferdep
*@hidden
*/
class UMLOptions {}
/**************************
*@opt attributes
*/
class Element {
public string name;
}
/**************************
*@opt attributes
*/
class Node extends Element {
public Coordinate location;
public double elevation;
}
/**************************
*@opt attributes
*/
class Link extends Element {
public Node from;
public Node to;
}
/**************************
*@opt attributes
*/
class Pipe extends Link {
public double length;
public double diameter;
public double roughness;
}
/**************************
*@opt attributes
*/
class Valve extends Link {
public double setting;
}
/**************************
*@opt attributes
*/
class Pump extends Link {
public double speed;
}
/**************************
*@opt attributes
*/
class Junction extends Node {
public double demand;
}
/**************************
*@opt attributes
*/
class Tank extends Node {
public double level;
}
/**************************
*@opt attributes
*/
class Reservoir extends Node {
public double head;
}
/**************************
*@opt attributes
*@opt shape activeclass
*@opt inferreltype composed
*/
class Network {
List nodes;
List links;
}
custom_mark10