Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ttsolver.model
Class Placement

    java.lang.Object
      ifs.model.Value
          ttsolver.model.Placement

All Implemented Interfaces:
  Comparable

    public class Placement

extends Value

Placement (value).
It combines room and time location

Version:
  1.0
Author:
  Tomáš Müller

Field Summary

Fields inherited from class ifs.model.Value
`iValue`

Constructor Summary
`Placement(Lecture lecture, TimeLocation timeLocation, RoomLocation roomLocation)` Constructor

Method Summary
`boolean` | `equals(Object object)` By default, comparison is made on unique ids
`String` | `getBuildingId()` Building id
`String` | `getDescription()` Values description -- for printing purposes
`static double` | `getDistance(Placement p1, Placement p2)` Distance between two placements
`String` | `getInstructorId()` Instructor id
`String` | `getName()` Values name -- for printing purposes (E.g., Monday 7:30)
`String` | `getRoomId()` Room id
`RoomLocation` | `getRoomLocation()` Room location
`TimeLocation` | `getTimeLocation()` Time location
`boolean` | `isInitial()` Is initial placement
`void` | `setInitial(boolean initial)` Is initial placement
`static boolean` | `shareDays(Placement p1, Placement p2)` True if the two given placements are using at one same day
`String` | `toString()`

Methods inherited from class ifs.model.Value
`assigned, compareTo, conflicts, countAssignments, getExtra, getId, hashCode, lastAssignmentIteration, lastUnassignmentIteration, setExtra, setVariable, toInt, unassigned, valueEquals, variable`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Placement

    public Placement(Lecture lecture,
                     TimeLocation timeLocation,
                     RoomLocation roomLocation)

  Constructor

  Parameters:
    `lecture` - lecture
    `timeLocation` - time location
    `roomLocation` - room location

Method Detail

### getTimeLocation

    public TimeLocation getTimeLocation()

  Time location

### getRoomId

    public String getRoomId()

  Room id

### getBuildingId

    public String getBuildingId()

  Building id

### getRoomLocation

    public RoomLocation getRoomLocation()

  Room location

### getInstructorId

    public String getInstructorId()

  Instructor id

### getName

    public String getName()

  Description copied from class: `Value`
  Values name -- for printing purposes (E.g., Monday 7:30)

  Overrides:
    `getName` in class `Value`

### isInitial

    public boolean isInitial()

  Is initial placement

### setInitial

    public void setInitial(boolean initial)

  Is initial placement

### equals

    public boolean equals(Object object)

  Description copied from class: `Value`
  By default, comparison is made on unique ids

  Overrides:
    `equals` in class `Value`

### toString

    public String toString()

  Overrides:
    `toString` in class `Value`

### getDescription

    public String getDescription()

  Description copied from class: `Value`
  Values description -- for printing purposes

  Overrides:
    `getDescription` in class `Value`

### getDistance

    public static double getDistance(Placement p1,
                                     Placement p2)

  Distance between two placements

### shareDays

    public static boolean shareDays(Placement p1,
                                    Placement p2)

  True if the two given placements are using at one same day

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005 Tomáš Müller