id stringlengths 36 36 | text stringlengths 1 1.25M |
|---|---|
42124459-9703-49ac-a3d5-35b41f3a0d18 | public void setSceneRadius( float radius ) {
sceneRadius = radius;
} |
2264b3d1-d6d7-4918-8b83-42495f7d6509 | public void transform( GL gl ) {
float tangent = (float)Math.tan( fieldOfViewInDegrees/2 / 180 * (float)Math.PI );
float viewportRadius = nearPlane * tangent;
float viewportWidth, viewportHeight;
if ( viewportWidthInPixels < viewportHeightInPixels ) {
viewportWidth = 2.0f*viewportRadius;
viewportHeight = ... |
7db5eda4-ba45-4b4a-96c4-9593c36003bd | public void orbit(
float old_x_pixels, float old_y_pixels,
float new_x_pixels, float new_y_pixels
) {
float pixelsPerDegree = viewportRadiusInPixels
/ orbitingSpeedInDegreesPerRadius;
float radiansPerPixel = 1
/ pixelsPerDegree * (float)Math.PI / 180;
Vector3D t2p = Point3D.diff(position, target);
... |
aa465703-77e4-4a27-af70-5339bad75a7f | public void translateSceneRightAndUp(
float delta_x_pixels, float delta_y_pixels
) {
Vector3D direction = Point3D.diff(target, position);
float distanceFromTarget = direction.length();
direction = direction.normalized();
float translationSpeedInUnitsPerRadius =
distanceFromTarget * (float)Math.tan( field... |
447e7d2e-f88c-41b7-b08b-06e2891b6f78 | public void dollyCameraForward( float delta_pixels, boolean pushTarget ) {
Vector3D direction = Point3D.diff(target,position);
float distanceFromTarget = direction.length();
direction = direction.normalized();
float translationSpeedInUnitsPerRadius =
distanceFromTarget * (float)Math.tan( fieldOfViewInDegre... |
ceb639e0-2240-42bc-b890-0e2ec8740d23 | public void lookAt(Point3D p) {
// FIXME: we do not check if the target point is too close
// to the camera (i.e. less than pushThreshold*nearPlane ).
// If it is, perhaps we should dolly the camera away from the
// target to maintain the minimal distance.
target = p;
Vector3D direction = (Point3D.diff(tar... |
a38a3748-3ff6-4364-8d45-b5c0839f4a59 | public Ray3D computeRay(
float pixel_x, float pixel_y
) {
float tangent = (float)Math.tan( fieldOfViewInDegrees/2 / 180 * (float)Math.PI );
float viewportRadius = nearPlane * tangent;
// Pixel coordinates of the viewport's center.
// These will be half-integers if the viewport's dimensions are even.
float... |
697d4d5f-0ab0-4dfc-b2b8-c8e507d8dde8 | public float convertPixelLength( Point3D p, float pixelLength ) {
Vector3D direction = Point3D.diff(target, position).normalized();
Vector3D v = Point3D.diff(p, position);
// distance, in world space units, from plane through camera that
// is perpendicular to line of site
float z = Vector3D.dot(v, direction... |
3a61b107-ccc1-4294-87cb-4d3781cbeb51 | public float computePixel(
Point3D p, // input
int [] pixel_coordinates // output; caller must pass in a 2-element array (for x and y)
) {
// Transform the point from world space to camera space.
Vector3D direction = (Point3D.diff(target, position)).normalized();
Vector3D right = Vector3D.cross(direction, u... |
8babeeff-087e-4646-a360-daa66af4f9d6 | public Sphere() { } |
d42a22c3-8240-4c17-9b77-2ad8f8207edc | public Sphere( Point3D c, float radius ) {
center.copy( c );
radiusSquared = radius * radius;
} |
299f0085-4257-4633-8df3-db16d16570b5 | public boolean intersects(
Ray3D ray, // input
Point3D intersection, // output
boolean allowIntersectionEvenIfRayOriginatesInsideSphere
) {
// Consider a line of the form Q+v*t, where t is real
Point3D Q = ray.origin;
Vector3D v = ray.direction;
// the sphere's center
Point3D P = center;
// Referen... |
f9c1b74d-87a1-47be-b678-c510babf1976 | public AlignedBox3D() {
} |
5c58dc6d-ea7b-4890-b1f9-ad811c245e9d | public AlignedBox3D( Point3D min, Point3D max ) {
assert min.x() <= max.x() : "bounds error";
assert min.y() <= max.y() : "bounds error";
assert min.z() <= max.z() : "bounds error";
p0.copy( min );
p1.copy( max );
isEmpty = false;
} |
cd93dfa7-59e6-4561-950b-cd66dbda72c8 | public boolean isEmpty() { return isEmpty; } |
5b19977a-ddaf-4b6f-97c7-6a0f507902e9 | public void clear() { isEmpty = true; } |
f13bdfca-7ff9-4d01-b877-90bb15ec271f | public Point3D getMin() { return p0; } |
385aaeeb-ffad-4862-a1b7-efc6a63b8d5c | public Point3D getMax() { return p1; } |
95e2a5a1-4cad-4abc-96cf-7764766798bf | public Vector3D getDiagonal() { return Point3D.diff(p1,p0); } |
1c0d8079-b382-4be6-9417-3dfbeaa2ab13 | public Point3D getCenter() {
return Point3D.average( p0, p1 );
} |
9b40d8bb-2af6-4e0a-92ab-0ac7a9a8b6ff | public void bound( Point3D p ) {
if ( isEmpty ) {
p0.copy(p);
p1.copy(p);
isEmpty = false;
}
else {
if ( p.x() < p0.x() )
p0.p[0] = p.x();
else if ( p.x() > p1.x() )
p1.p[0] = p.x();
if ( p.y() < p0.y() )
p0.p[1] = p.y();
else if ( p.y() > p1.y() )
p1.p[1] = p.y();
if ( p... |
c94c0bec-50f0-4ece-8809-fc651749248b | public void bound( AlignedBox3D box ) {
bound( box.p0 );
bound( box.p1 );
} |
5130e5ab-1c17-4cbf-9aeb-89940a8f052d | public boolean contains( Point3D p ) {
return !isEmpty
&& p0.x() <= p.x() && p.x() <= p1.x()
&& p0.y() <= p.y() && p.y() <= p1.y()
&& p0.z() <= p.z() && p.z() <= p1.z();
} |
7f3d55b6-4166-4e54-a591-c3c0b65bff8e | public Point3D getCorner(int i) {
return new Point3D(
((i & 1)!=0) ? p1.x() : p0.x(),
((i & 2)!=0) ? p1.y() : p0.y(),
((i & 4)!=0) ? p1.z() : p0.z()
);
} |
b0136782-2906-4f11-8b5d-dac0c682fb0b | public Point3D getExtremeCorner( Vector3D v ) {
return new Point3D(
v.x() > 0 ? p1.x() : p0.x(),
v.y() > 0 ? p1.y() : p0.y(),
v.z() > 0 ? p1.z() : p0.z()
);
} |
be7bad15-d5e0-4f0d-878d-8dc4726da814 | public int getIndexOfExtremeCorner( Vector3D v ) {
int returnValue = 0;
if (v.x() > 0) returnValue |= 1;
if (v.y() > 0) returnValue |= 2;
if (v.z() > 0) returnValue |= 4;
return returnValue;
} |
670fcd80-211a-4fba-9fcd-89adf2b2944e | public boolean intersects(
Ray3D ray, // input
Point3D intersection, // output
Vector3D normalAtIntersection // output
) {
// We compute a bounding sphere for the box.
// If the ray intersects the bounding sphere,
// it *may* intersect the box.
// If the ray does NOT intersect the bounding sphere,
// t... |
5c0d28ab-deb4-4710-a947-6459787f8739 | public Vector3D() {
v[0] = v[1] = v[2] = 0;
} |
cb3cc5a4-c5dc-41bc-b45e-cbe6b9c0e1da | public Vector3D( float x, float y, float z ) {
v[0] = x;
v[1] = y;
v[2] = z;
} |
b732cc4e-b80a-4c28-80e5-9198f07fdbf5 | public Vector3D( Point3D P ) {
v[0] = P.p[0];
v[1] = P.p[1];
v[2] = P.p[2];
} |
7794cae7-86f0-4894-8948-7283a36a4557 | public void copy( float x, float y, float z ) {
v[0] = x;
v[1] = y;
v[2] = z;
} |
93a9f7b5-74ee-4130-af49-12e34fc4daf3 | public void copy( Vector3D V ) {
v[0] = V.v[0];
v[1] = V.v[1];
v[2] = V.v[2];
} |
b66b8a5d-c4e0-4def-8dd3-16fb5f955980 | public float x() { return v[0]; } |
ab82aa1d-2033-4ccb-897b-9d38de3d0574 | public float y() { return v[1]; } |
a1df3891-e2a3-433c-8032-56dadd342de0 | public float z() { return v[2]; } |
fbb232f5-6ee8-4adb-9013-c76995f72ab8 | public float lengthSquared() {
return x()*x() + y()*y() + z()*z();
} |
8aadf341-05bd-4e58-82e7-d59ca0266fab | public float length() {
return (float)Math.sqrt( lengthSquared() );
} |
748a9dd1-aefb-4e8c-add2-d447f6722e95 | public Vector3D negated() {
return new Vector3D(-x(),-y(),-z());
} |
f07085e7-cccc-4904-9ce7-ef5fe4dc5654 | public Vector3D normalized() {
float l = length();
if ( l > 0 ) {
float k = 1/l; // scale factor
return new Vector3D(k*x(),k*y(),k*z());
}
else return new Vector3D(x(),y(),z());
} |
6a0d7e9b-7541-425a-866b-4d0ad6dcedfc | static public float dot( Vector3D a, Vector3D b ) {
return a.x()*b.x() + a.y()*b.y() + a.z()*b.z();
} |
83813ce3-c06b-40fd-a987-df0c883b69f7 | static public Vector3D cross( Vector3D a, Vector3D b ) {
return new Vector3D(
a.y()*b.z() - a.z()*b.y(),
a.z()*b.x() - a.x()*b.z(),
a.x()*b.y() - a.y()*b.x()
);
} |
03137bd8-dbd6-4b9b-a814-09ed91f47293 | static public Vector3D sum( Vector3D a, Vector3D b ) {
return new Vector3D( a.x()+b.x(), a.y()+b.y(), a.z()+b.z() );
} |
67b2dfa3-38df-47fd-8ff0-b761923d92dc | static public Vector3D diff( Vector3D a, Vector3D b ) {
return new Vector3D( a.x()-b.x(), a.y()-b.y(), a.z()-b.z() );
} |
c4f43fde-e67e-46d7-aa74-97b778fa1279 | static public Vector3D mult( Vector3D a, float b ) {
return new Vector3D( a.x()*b, a.y()*b, a.z()*b );
} |
b6ac0752-3054-4300-95a6-3c71038138ed | static public float computeSignedAngle( Vector3D v1, Vector3D v2, Vector3D axisOfRotation ) {
Vector3D crossProduct = Vector3D.cross( v1.normalized(), v2.normalized() );
// Due to numerical inaccuracies, the length of the cross product
// may be slightly more than 1.
// Calling arcsin on such a value would re... |
876cd4d4-e0e9-4069-a966-648194290d4e | public void resize( GL gl, int w, int h ) {
_window_width = w;
_window_height = h;
gl.glViewport( 0, 0, w, h );
gl.glMatrixMode( GL.GL_PROJECTION );
gl.glLoadIdentity();
gl.glOrtho( 0, w, 0, h, -1, 1 );
} |
d3cb10b5-6936-4ce0-a565-9e926486efb3 | public int getWidth() { return _window_width; } |
a75f416e-ed08-4cb7-be30-9c30f14136f5 | public int getHeight() { return _window_height; } |
0741a546-5f8c-4ec1-8c32-3bbe1c133799 | public void pushProjection( GL gl, int w, int h ) {
_window_width = w;
_window_height = h;
gl.glMatrixMode( GL.GL_PROJECTION );
gl.glPushMatrix();
gl.glLoadIdentity();
gl.glOrtho( 0, w, 0, h, -1, 1 );
gl.glMatrixMode(GL.GL_MODELVIEW);
gl.glPushMatrix();
gl.glLoadIdentity();
} |
9edc67be-d612-4704-836c-13ad706ca6f1 | public void popProjection( GL gl ) {
gl.glMatrixMode( GL.GL_PROJECTION );
gl.glPopMatrix();
gl.glMatrixMode( GL.GL_MODELVIEW );
gl.glPopMatrix();
} |
92d5c373-83c9-4c08-925b-3aee9df98658 | public float convertPixelX( float x ) {
return x+0.5f;
} |
872110ab-7c62-4e40-92a9-51b1648b0844 | public float convertPixelY( float y ) {
y = _window_height - y - 1;
return y+0.5f;
} |
b554653f-7256-4270-8441-8f7161fa6175 | public void plotPixel( GL gl, int x, int y ) {
y = _window_height - y - 1;
gl.glBegin( GL.GL_POINTS );
gl.glVertex2f( x+0.5f, y+0.5f );
gl.glEnd();
} |
eec1c1bc-df77-4228-ae91-d776ca0f41fb | public void drawLine( GL gl, int x1, int y1, int x2, int y2 ) {
y1 = _window_height - y1 - 1;
y2 = _window_height - y2 - 1;
gl.glBegin( GL.GL_LINES );
gl.glVertex2f( x1+0.5f, y1+0.5f );
gl.glVertex2f( x2+0.5f, y2+0.5f );
gl.glEnd();
gl.glBegin( GL.GL_POINTS );
gl.glVertex2f( x2+0.5f, y2+0.5f );
gl.... |
43c9f069-3e53-4f51-a085-4b171a32d736 | public void drawRect( GL gl, int x, int y, int w, int h ) {
y = _window_height - y - h;
--w;
--h;
gl.glBegin( GL.GL_LINE_LOOP );
gl.glVertex2f( x+0.5f, y+0.5f );
gl.glVertex2f( x+w+0.5f, y+0.5f );
gl.glVertex2f( x+w+0.5f, y+h+0.5f );
gl.glVertex2f( x+0.5f, y+h+0.5f );
gl.glEnd();
} |
b066f07c-9529-4773-9a98-be0c27f2c097 | public void fillRect( GL gl, int x, int y, int w, int h ) {
y = _window_height - y - h;
gl.glRecti( x, y, x+w, y+h );
} |
86ec34cc-0bf4-417b-b4ab-37a563b74d62 | public void drawRectBetweenTwoCorners( GL gl, int x1, int y1, int x2, int y2 ) {
int tmp;
if ( x2 < x1 ) { /* swap */ tmp = x1; x1 = x2; x2 = tmp; }
if ( y2 < y1 ) { /* swap */ tmp = y1; y1 = y2; y2 = tmp; }
drawRect( gl, x1, y1, x2-x1+1, y2-y1+1 );
} |
d5f4a2dd-8dff-4824-9670-0f1a037c68a7 | public void drawCircle( GL gl, int x, int y, int radius, boolean filled ) {
y = _window_height - y - 1;
if ( filled ) {
gl.glBegin( GL.GL_TRIANGLE_FAN );
gl.glVertex2f( x+0.5f, y+0.5f );
}
else gl.glBegin( GL.GL_LINE_LOOP );
int numSides = (int)( 2 * Math.PI * radius + 1 );
float deltaAngle = 2 * (f... |
22caef98-3395-49bf-a31a-675d34171ffe | public void drawArc(
GL gl,
int x, int y, int radius,
float startAngle, // Relative to the +x axis, increasing anticlockwise
float arcAngle, // In radians; can be negative
boolean filled,
boolean isArrowHeadAtStart,
boolean isArrowHeadAtEnd,
float arrowHeadLength
) {
y = _window_height - y - 1;
if ... |
f049fc55-726f-4f86-977b-934e81da05a0 | public static float stringWidthInPixels(
String s,
float height, // string is scaled to be this high, in pixels
int fontHeightType
) {
if ( s.length() == 0 ) return 0;
float h, w_over_h;
switch ( fontHeightType ) {
case FONT_ASCENT :
h = G_FONT_ASCENT;
break;
case FONT_ASCENT_PLUS_DESCENT... |
c370b71a-5426-4290-9186-97775e256416 | public void drawString(
GL gl, GLUT glut,
int x, int y, // lower left corner of the string
String s, // the string
float height, // string is scaled to be this high, in pixels
int fontHeightType
) {
if ( s.length() == 0 ) return;
y = _window_height - y - 1;
float ascent; // in pixe... |
0b80691d-7edd-4251-bb94-c90a4d6939f4 | public Matrix4x4() {
setToIdentity();
} |
f4150dd0-cefd-42d0-a3e8-be317c7c5e54 | public void setToIdentity() {
m[ 0] = 1; m[ 4] = 0; m[ 8] = 0; m[12] = 0;
m[ 1] = 0; m[ 5] = 1; m[ 9] = 0; m[13] = 0;
m[ 2] = 0; m[ 6] = 0; m[10] = 1; m[14] = 0;
m[ 3] = 0; m[ 7] = 0; m[11] = 0; m[15] = 1;
} |
316b983c-9dbc-47e8-a7d8-89c2d45b087e | public void copy( Matrix4x4 M ) {
m[ 0] = M.m[ 0]; m[ 4] = M.m[ 4]; m[ 8] = M.m[ 8]; m[12] = M.m[12];
m[ 1] = M.m[ 1]; m[ 5] = M.m[ 5]; m[ 9] = M.m[ 9]; m[13] = M.m[13];
m[ 2] = M.m[ 2]; m[ 6] = M.m[ 6]; m[10] = M.m[10]; m[14] = M.m[14];
m[ 3] = M.m[ 3]; m[ 7] = M.m[ 7]; m[11] = M.m[11]; m[15] = M.m[15];
} |
d0dacb6e-83c3-42fd-9d21-90c71aa851f1 | public void setToTranslation( Vector3D v ) {
m[ 0] = 1; m[ 4] = 0; m[ 8] = 0; m[12] = v.x();
m[ 1] = 0; m[ 5] = 1; m[ 9] = 0; m[13] = v.y();
m[ 2] = 0; m[ 6] = 0; m[10] = 1; m[14] = v.z();
m[ 3] = 0; m[ 7] = 0; m[11] = 0; m[15] = 1;
} |
82c97ab8-4375-4ff3-82cb-00cfdf9bd020 | public void setToRotation( float angle_in_radians, Vector3D v ) {
// TODO XXX assert here that v is normalized
float c = (float)Math.cos( angle_in_radians );
float s = (float)Math.sin( angle_in_radians );
float one_minus_c = 1-c;
m[ 0] = c + one_minus_c * v.x()*v.x();
m[ 5] = c + one_minus_c * v.y()*v.y();
... |
cb426736-b8c3-4ea5-a927-31bb8aa6892c | public void setToRotation( float angle_in_radians, Vector3D v, Point3D origin ) {
Matrix4x4 tmp = new Matrix4x4();
tmp.setToTranslation( (new Vector3D( origin )).negated() );
setToRotation( angle_in_radians, v );
copy( Matrix4x4.mult( this, tmp ) );
tmp.setToTranslation( new Vector3D( origin ) );
copy( Matr... |
a33c9064-9eba-487e-b3fd-cbb100b5dfa9 | public void setToUniformScale( float s ) {
m[ 0] = s; m[ 4] = 0; m[ 8] = 0; m[12] = 0;
m[ 1] = 0; m[ 5] = s; m[ 9] = 0; m[13] = 0;
m[ 2] = 0; m[ 6] = 0; m[10] = s; m[14] = 0;
m[ 3] = 0; m[ 7] = 0; m[11] = 0; m[15] = 1;
} |
39d2f48f-e885-4457-b36c-0f63f117dfba | public void setToUniformScale( float s, Point3D origin ) {
Matrix4x4 tmp = new Matrix4x4();
tmp.setToTranslation( (new Vector3D( origin )).negated() );
setToUniformScale( s );
copy( Matrix4x4.mult( this, tmp ) );
tmp.setToTranslation( new Vector3D( origin ) );
copy( Matrix4x4.mult( tmp, this ) );
} |
63a82a02-47b9-4305-be6c-e31781df3aea | public void setToLookAt(
Point3D eye, Point3D target, Vector3D up,
boolean inverted
) {
// step one: generate a rotation matrix
Vector3D z = (Point3D.diff(eye,target)).normalized();
Vector3D y = up;
Vector3D x = Vector3D.cross(y,z);
y = Vector3D.cross(z,x);
// Cross product gives area of parallelogra... |
b57b3d3e-4c75-4d38-b5d4-15c3a27844a6 | public static Matrix4x4 mult( Matrix4x4 a, Matrix4x4 b ) {
Matrix4x4 M = new Matrix4x4();
M.m[ 0] = a.m[ 0]*b.m[ 0] + a.m[ 4]*b.m[ 1] + a.m[ 8]*b.m[ 2] + a.m[12]*b.m[ 3];
M.m[ 1] = a.m[ 1]*b.m[ 0] + a.m[ 5]*b.m[ 1] + a.m[ 9]*b.m[ 2] + a.m[13]*b.m[ 3];
M.m[ 2] = a.m[ 2]*b.m[ 0] + a.m[ 6]*b.m[ 1] + a.m[10]*b.m[ ... |
ad83993c-8414-4db1-9b4d-9934c50fbe84 | public static Vector3D mult( Matrix4x4 a, Vector3D b ) {
// We treat the vector as if
// its (homogeneous) 4th component were zero.
return new Vector3D(
a.m[ 0]*b.x() + a.m[ 4]*b.y() + a.m[ 8]*b.z(), // + a.m[12]*b.w(),
a.m[ 1]*b.x() + a.m[ 5]*b.y() + a.m[ 9]*b.z(), // + a.m[13]*b.w(),
a.m[ 2]*b.x() + a.... |
554910d2-82b8-4b70-906f-7989de3d20b4 | public static Point3D mult( Matrix4x4 a, Point3D b ) {
// We treat the point as if
// its (homogeneous) 4th component were one.
return new Point3D(
a.m[ 0]*b.x() + a.m[ 4]*b.y() + a.m[ 8]*b.z() + a.m[12],
a.m[ 1]*b.x() + a.m[ 5]*b.y() + a.m[ 9]*b.z() + a.m[13],
a.m[ 2]*b.x() + a.m[ 6]*b.y() + a.m[10]*b.z... |
bceb8760-5fd8-4287-bd81-352c8de826cc | public Plane() { d = 0; } |
f6232a24-9faf-4a3b-8f2d-390d53dde6b7 | public Plane( Vector3D normal, Point3D p ) {
n.copy( normal.normalized() );
d = - n.x()*p.x() - n.y()*p.y() - n.z()*p.z();
} |
6975fdd3-69e2-43fd-a90e-4a9935768e58 | public boolean intersects(
Ray3D ray, // input
Point3D intersection, // output
boolean allowIntersectionEvenIfPlaneIsBackfacing
) {
float dot = Vector3D.dot( n, ray.direction );
if ( !allowIntersectionEvenIfPlaneIsBackfacing && dot > 0 ) {
return false;
}
if ( dot == 0 ) {
return false;
}
// R... |
5c7bd0d6-6ec2-4c43-9633-4d63663e5304 | public CameraState(Point3D position, Point3D target, Vector3D up){
this.position = position;
this.target = target;
this.up = up;
} |
99f308a6-a11d-40d8-96d9-294f3cf07286 | public Point3D getPosition() {
return position;
} |
7e8436c4-5748-458b-96af-eb337a5f172f | public void setPosition(Point3D position) {
this.position = position;
} |
06509753-2429-4e07-a13d-acb7680bf69b | public Point3D getTarget() {
return target;
} |
d8e6dd75-665c-4d60-bfbb-643864291e37 | public void setTarget(Point3D target) {
this.target = target;
} |
4b03c9b9-c172-4626-bcf4-779a3d22978a | public Vector3D getUp() {
return up;
} |
3c3e8154-3b68-43d1-b22a-c1c847bbb03f | public void setUp(Vector3D up) {
this.up = up;
} |
15c15384-c303-4616-ad95-ba347166cbd7 | public Ray3D() { } |
d7d75388-cbae-42f3-acd7-142ffbba60aa | public Ray3D(Point3D o, Vector3D d) {
origin.copy( o );
direction.copy( d.normalized() );
} |
74d8e4af-d537-4113-a672-923153cc8109 | public Point3D point( float t ) {
return Point3D.sum(origin, Vector3D.mult(direction,t));
} |
a1201fd1-a17b-4d05-851f-d708f6bcc709 | public Room(){
roomNumber = 0;
capacity = "";
} |
3c4c6515-1222-411d-9ec5-187922e5907d | public Room(int roomNumber, String capacity){
this.roomNumber= roomNumber;
this.capacity = capacity;
} |
44213f3e-085e-46e6-8246-d8adc4d2898d | public String changeCapacity(){
return capacity;
} |
71f496bc-6d0c-4390-be70-b2ead3bcaa5f | public int getRoomNumber() {
return roomNumber;
} |
5535c133-6e66-4e91-87b7-e9e64a833814 | public User(){
userName = "";
passWord = "";
} |
b065305a-9fd1-482e-9a94-2360db50f479 | public User(int userId,String userName,String passWord, String firstName){
User.userId =userId;
this.userName =userName;
this.passWord = passWord;
this.firstName = firstName;
} |
90413afc-c115-46a3-8a31-f049fbd70ed6 | public String changeUserName(){
return getUserName();
} |
6dcebd44-544c-485d-9699-b39e3e68cb38 | public String changePassword(){
return passWord;
} |
95cfe941-75c8-4948-8a6d-a922d0170a60 | public String getFirstName() {
return firstName;
} |
2244f9c3-f14e-450a-9d68-1a46c840148f | public void setFName(String name){
this.firstName = name;
} |
5fd3e939-85c3-44ad-82d6-3cb09ff8d54e | public String getLastName() {
return lastName;
} |
d2b14762-309a-4a1d-91ba-a29222eaac93 | public void setLName(String last){
this.lastName = last;
} |
441b08a5-90b3-496f-8734-dc909eabafb8 | public String getUserType() {
return userType;
} |
c4de5f04-33bf-4792-8969-5022b44d9261 | public void setUserType(String userType){
this.userType = userType;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.