aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/rba/RBAResult.hpp
blob: 8a297851f408b2e6194e9aa3b5f736b52080d380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
/**
 * Copyright (c) 2019 DENSO CORPORATION.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * Arbitration result class
 */

#ifndef RBARESULT_HPP
#define RBARESULT_HPP

#ifdef _MSC_VER
#ifdef _WINDLL
#define DLL_EXPORT __declspec(dllexport)
#else
#define DLL_EXPORT __declspec(dllimport)
#endif
#else
#define DLL_EXPORT
#endif

#include <memory>
#include <list>
#include "RBAResultStatusType.hpp"
#include "RBAViewAction.hpp"
#include "RBAScene.hpp"

namespace rba
{

class RBAArea;
class RBAViewContent;
class RBAViewContentState;
class RBAScene;
class RBASize;
class RBAZone;
class RBASoundContent;
class RBASoundContentState;
// internal {
class RBADisplay;
// }

/**
 * @class RBAResult
 * Stores an arbitration result.<br>
 * The Arbitrator allocates Contents to Areas. Related
 * information of those can be acquired from RBAResult.\n
 * The arbitration result indicates which content is allocated to each 
 * area / zone.
 * Also, snapshot information and view action information (only display
 * results) indicating the difference from the last arbitration are included.
 */
class DLL_EXPORT RBAResult
{
public:
  RBAResult()=default;
  RBAResult(const RBAResult&)=delete;
  RBAResult(RBAResult&&)=delete;
  RBAResult& operator=(const RBAResult&)=delete;
  RBAResult& operator=(RBAResult&&)=delete;
  virtual ~RBAResult()=default;

public:

  // [VisibleArea/SoundingZone]

  /**
   * @brief Returns the displaying areas determined by the last arbitration.
   * @return List of visible areas.
   */
  virtual const std::list<const RBAArea*>& getVisibleAreas() const=0;

  /**
   * @brief Returns the outputting zones determined by the last arbitration.
   * @return List of sounding zones.
   */
  virtual const std::list<const RBAZone*>& getSoundingZones() const=0;

  // [Visible/Sounding ContentStates]

  /**
   * @brief Returns the view content states to be displayed determined by the last arbitration.
   * @return List of visible view content states.
   */
  virtual const std::list<const RBAViewContentState*>& getVisibleContentStates() const=0;

  /**
   * @brief Returns the sound content states to be output determined by the last arbitration.
   * @return List of sound content states to be output.
   * @details The list contains sound contents to be attenuated.
   */
  virtual const std::list<const RBASoundContentState*>& getSoundingContentStates() const=0;

  // [Active View/Sound ContentStates]

  /**
   * @brief Returns the active view content states at the last arbitration
   * result.
   * @return List of active view content states.
   * @details
   * The active view content states are those that have been requested to
   * display so far.  They do not include the view content state whose request
   * has been withdrawn or canceled.
   */
  virtual const std::list<const RBAViewContentState*>& getActiveViewContentStates() const=0;

  /**
   * @brief Returns the active sound content states at the last arbitration
   * result.
   * @return List of active sound content states.
   * @details
   * The active sound content states are those that have been requested to
   * output so far.  They do not include the sound content state whose request
   * has been withdrawn or canceled.
   */
  virtual const std::list<const RBASoundContentState*>& getActiveSoundContentStates() const=0;

  // [Active Scenes]

  /**
   * @brief Returns the active scenes at the last arbitration.
   * @return List of active scenes.
   * @details
   * The active scenes are those that have been requested for ON so far.
   * They do not include scenes requested for OFF afterwards.
   */
  virtual const std::list<const RBAScene*>& getActiveScenes() const=0;

  // [InvisibleAreas/UnsoundingZone]

  /**
   * @brief Returns the invisible areas determined by the last arbitration.
   * @return List of invisible areas.
   * @details
   * Returns the areas which are not displayed out of all areas.\n
   * The list contains areas to be hidden.
   */
  virtual const std::list<const RBAArea*>& getInvisibleAreas() const=0;

  /*
   * @brief Returns the unsounding zones determined by the last arbitration.
   * @return List of unsounding zones.
   * @details
   * Returns the zones which are not output out of all zones.
   * The list contains zones to be muted.
   */
  virtual const std::list<const RBAZone*>& getUnsoundingZones() const=0;

  // [HiddenAreas/MuteZones]

  /**
   * @brief Returns the area that is hidden state and content has been
   * allocated.\n
   * The hidden state is a state in which the area must be hidden by a
   * constraint expression.
   * @return List of areas.
   * Returns the area which become to be invisible.
   * The area invisible in the previous time is not included.
   */
  virtual const std::list<const RBAArea*>& getHiddenAreas() const=0;

  /**
   * @brief Returns the zone that is muted state and content has been
   * allocated.\n
   * The muted state is a state in which the zone must be muted by a
   * constraint expression.
   * @return List of muted zones.
   *
   * Retuens the zones that is defeted and canceled sound contents.
   */
  virtual const std::list<const RBAZone*>& getMuteZones() const=0;

  // [get Attenuated]

  /**
   * @brief Returns the attenuated zones determined by the last arbitration.
   * @return List of attenuated zones.
   */
  virtual const std::list<const RBAZone*>& getAttenuatedZones() const=0;

  // [Canceled Contents]

  /**
   * @brief Returns the canceled view contents determined by the last arbitration.
   * @return List of canceled view contents.
   * @details
   * Reterns list of view contents which are canceled by Request handling on lost definition\n
   * such as Loser Type and Post Constraints.\n
   * The list does not contain contents which are withdrawn.
   */
  virtual const std::list<const RBAViewContent*>& getCanceledViewContents() const=0;

  /**
   * @brief Returns the canceled sound contents determined by the last arbitration.
   * @return List of canceled sound contents.
   * @details
   * Reterns list of sound contents which are canceled by Request handling on lost definition\n
   * such as Loser Type and Post Constraints.\n
   * The list does not contain contents which are withdrawn.
   */
  virtual const std::list<const RBASoundContent*>& getCanceledSoundContents() const=0;

  // [Standby Contents]

  /**
   * @brief Returns the stand by view contents due to defeated at the last
   * arbitration.
   * @return List of stand by view contents.
   * @details
   * Returns list of view contents which are active but not allocated to any area.
   * The list does not contains which are canceled contents or are allocated to hidden area.
   */
  virtual const std::list<const RBAViewContent*>& getStandbyViewContents() const=0;

  /**
   * @brief Returns the stand by sound contents due to defeated at the last
   * arbitration.
   * @return List of stand by sound contents.
   * @details
   * Returns list of sound contents which are active but not allocated to any area.
   * The list does not contains which are canceled contents or are allocated to muted area.
   */
  virtual const std::list<const RBASoundContent*>& getStandbySoundContents() const=0;

  // [ContentStates]

  /**
   * @brief Returns the view content state assigned to the area of the last
   * arbitration.
   * @param area Area
   * @return The view content state assign to the area.
   * @details
   * If no view content state is allocated to the area, nullptr is returnd.\n
   * If area is not defined in the Model or nullptr, nullptr is returnd.
   */
  virtual const RBAViewContentState* getContentState(const RBAArea* area) const=0;

  /**
   * @brief Returns the sound content state assigned to the zone of the last
   * arbitration.
   * @param zone Zone
   * @return The sound content state assign to the zone.
   * @details
   * If no sound content state is allocated to the zone, nullptr is returned.\n
   * If zone is not defined in the Model or nullptr, nullptr is returnd.
   */
  virtual const RBASoundContentState* getContentState(const RBAZone* zone) const=0;

  // [Areas/Zones by ConentState]

  /**
   * @brief Returns the area to which the view content state is allocated at the
   * last arbitration.
   * @param state View content state
   * @return The areas to which the view content state.
   * @details
   * If the view content state is not assigned to any area, empty list is returned.\n
   * If state is not defined in the Model or nullptr, empty list is returned.
   */
  virtual const std::list<const RBAArea*> getArea(const RBAViewContentState* state) const=0;

  /**
   * @brief Get the zone to which the sound content state is allocated of the
   * last arbitration.
   * @param state Sound content state
   * @return The zones to which the sound content state is allocated.
   * @details
   * If the sound content state is not assigned to any zone,
   * empty list is retuened.\n
   * If state is not defined in the Model or nullptr, empty list is returned.
   */
  virtual const std::list<const RBAZone*> getZone(const RBASoundContentState* state) const=0;

  // [Areas/Zones by Content]

  /**
   * @brief Returns the area to which the view content is allocated of the
   * last arbitration.
   * @param content View content
   * @return The areas to which the view content is allocated.
   * @details
   * If the view content is not assigned to any area, empty list is returned.\n
   * If content is not defined in the Model or nullptr, empty list is returned.\n
   * This API is the same as getArea(RBAViewContentState*) \n
   * except for the type of argument.
   */
  virtual const std::list<const RBAArea*> getArea(const RBAViewContent* content)const=0;

  /**
   * @brief Returns the zone to which the sound content state is allocated of the
   * last arbitration.
   * @param content Sound content
   * @return The zones to which the sound content is allocated.
   * @details
   * If the sound content is not assigned to any area, nullptr is returned.\n
   * If content is not defined in the Model or nullptr, empty list is returned.\n
   * This API is the same as getZone(RBASoundContentState*) \n
   * except for the type of argument.
   */
  virtual const std::list<const RBAZone*> getZone(const RBASoundContent* content) const=0;

  // [Size]

  /**
   * @brief Returns the size of the area determined in the last arbitration.
   * @param area Area
   * @return The size of the area.
   * @details
   * Area may have multiple sizes and its size will vary by the allocated content.\n
   * This API returns the size which are matched with allocated content.\n
   * If no content is allocated to the area, returns nullptr.\n
   * If area is not defined in the Model or nullptr, returns nullptr.
   */
  virtual const RBASize* getSize(const RBAArea* area) const=0;

  // [Active check Scene]

  /**
   * @brief Returns true if the scene is ON at the last arbitration.
   * @param scene Reference scene to be checked.
   * @return true: the scene is ON
   * @return false: the scene is OFF
   * @details
   * If scene is not defined in the Model or nullptr, returns false.
   */
  virtual bool isActive(const RBAScene* scene) const=0;

  // [Active check ContentState]

  /**
   * @brief Returns true if the view content is active.
   * @param state Reference view content to be checked.
   * @return true: Active
   * @return false: Not active
   * @details
   * If content is not defined in the Model or nullptr, returns false.
   */
  virtual bool isActive(const RBAViewContent* content) const=0;

  /**
   * @brief Returns true if the sound content is active.
   * @param state Reference sound content to be checked.
   * @return true: Active
   * @return false: Not active
   * @details
   * If content is not defined in the Model or nullptr, returns false.
   */
  virtual bool isActive(const RBASoundContent* content) const=0;

  // [Visible/Sounding Area/Zonecheck]

  /**
   * @brief Returns true if the area is visible of the last arbitration.
   * @param area Reference area to be checked.
   * @return true: Visible
   * @return false: Not visible
   * @details
   * Returns false if the area is hidden.\n
   * If area is not defined in the Model or nullptr, returns false.
   */
  virtual bool isVisible(const RBAArea* area) const=0;

  /**
   * @brief Returns true if the zone is sounding of the last arbitration.
   * @param zone Reference zone to be checked.
   * @return true: Sounding
   * @return false: Not sounding
   * @details
   * Returns false if the zone is muted.\n
   * If zone is not defined in the Model or nullptr, returns false.
   */
  virtual bool isSounding(const RBAZone* zone) const=0;

  // [Visible/Sounding ContentState check]

  /**
   * @brief Returns true if the view content state is visible
   * of the last arbitration.
   * @param state Reference view content state to be checked.
   * @return true: state is allocated to visible area.
   * @return false: state is not allocated to visible area.
   * @details
   * If all of the areas to which the content is allocated are hidden, returns false\n
   * If state is not defined in the Model or nullptr, returns false.
   */
  virtual bool isVisible(const RBAViewContentState* state) const=0;

  /**
   * @brief Returns true if the sound content state is sounding
   * of the last arbitration.
   * @param state Reference sound content state to be check.
   * @return true: state is allocated to outputting zone.
   * @return false: state is not allocated to outputting zone.
   * @details
   * If all of the zones to which the content is allocated are muted, returns false\n
   * If state is not defined in the Model or nullptr, returns false.
   */
  virtual bool isSounding(const RBASoundContentState* state) const=0;

  // [View/Sound ContentState]

  /**
   * @brief Returns the view content state allocated to the area
   * of the last arbitration.
   * @param area Area
   * @return The view content state allocated to the area.
   * @details
   *  Even if the area is hidden, Returns the allocated content state.\n
   * If no visible view content state is allocated the area, nullptr is returnd.\n
   * If area is not defined in the Model or nullptr, returns nullptr.
   */
  virtual const RBAViewContentState* getViewContentState(const RBAArea* area) const=0;

  /**
   * @brief Returns the sounding sound content state assigned to the zone
   * of the last arbitration.
   * @param zone Zone
   * @return The sounding sound content state assign to the zone.
   * @details
   *  Even if the zone is muted, Returns the allocated content state.\n
   * If no sounding sound content state is allocated the area,
   * nullptr is returnd.\n
   * If zone is not defined in the Model or nullptr, returns nullptr.
   */
  virtual const RBASoundContentState* getSoundContentState(const RBAZone* zone) const=0;

  // [Hidden/Mute check]

  /**
   * @brief Returns true if the area is hidden state of the last arbitration.\n
   * The hidden state is a state in which the area must be hidden by a
   * constraint expression.\n
   * In the hidden state, it returns true even if the content is not assigned.
   * @param area Reference area to be checked.
   * @return true: Hidden
   * @return false: Not hidden
   * @details
   * If area is not defined in the Model or nullptr, returns nullptr.
   */
  virtual bool isHidden(const RBAArea* area) const=0;

  /**
   * @brief Returns true if the zone is muted state of the last arbitration.\n
   * The muted state is a state in which the zone must be muted by a
   * constraint expression.\n
   * In the muted state, it returns true even if the content is not assigned.
   * @param zone Reference zone to be checked.
   * @return true: Muted
   * @return false: Not muted
   * @details
   * If zone is not defined in the Model or nullptr, returns nullptr.
   */
  virtual bool isMute(const RBAZone* zone) const=0;

  // [Check Attenuated]

  /**
   * @brief Returns true if the zone is attenuated
   * of the last arbitration.
   * @param zone Reference zone to be check.
   * @return true: Attenuated
   * @return false: Not attenuated
   * @details
   * If zone is not defined in the Model or nullptr, returns nullptr.
   */
  virtual bool isAttenuated(const RBAZone* zone) const=0;

  // [Cancel check]

  /**
   * @brief Returns true if the view content state is canceled
   * at the last arbitration.
   * @param state Reference view content state to be checked.
   * @return true: Canceled
   * @return false: Not canceled or Not request view content state
   * @details
   * If state is not active, returns false.\n
   * If state is not defined in the Model or nullptr, returns false.
   */
  virtual bool isCancel(const RBAViewContentState* state) const=0;

  /**
   * @brief Returns true if the sound content state is canceled
   * at the last arbitration.
   * @param state Reference view content state to be checked.
   * @return true: Canceled
   * @return false: Not canceled
   * @details
   * If state is not active, returns false.\n
   * If state is not defined in the Model or nullptr, returns false.
   */
  virtual bool isCancel(const RBASoundContentState* state) const=0;

  // common

  /**
   * @brief Returns information of view status changes
   * (the view actions) of the last arbitration.
   * @return List of view actions.
   * @details
   * ViewAction is an information of differences \n
   * between the last arbitration result and its previous result.\
   * There is no difference between hidden and not displayed for visible status.\n
   */
  virtual const std::list<const RBAViewAction*>& getViewActions() const=0;

  /**
   * @brief Returns the result status type of the last arbitration.
   * @return SUCCESS: Success
   * @return UNKNOWN_CONTENT_STATE: Failed (The reuqest is unknown)
   * @return CANCEL_ERROR: Cancel arbitrration error
   * @endcond
   */
  virtual RBAResultStatusType getStatusType() const=0;

  /**
   * @brief Returns satisfied status of all online constraints.
   * @return true:All online constraints check result is OK, and arbitration finished.
   * @return false:All online constraints check result is NG, and arbitration finished.
   */
  virtual bool satisfiesConstraints() const=0;

  /**
   * @brief Returns the property value of scene.
   * @return Property value
   * @details
   * If the scene or propertyName is not defined in the Model, returns -99.\n
   * @endcond
   */
  virtual std::int32_t getSceneProperty(const RBAScene* scene, const std::string& propertyName) const=0;

  // internal {
  /**
   * @brief Returns the displaying areas of the previous arbitration.
   * @return List of visible areas.
   */
  virtual const std::list<const RBAArea*>& getPreVisibleAreas() const=0;

  /**
   * @brief Returns the outputting sounding zones of the previous arbitration.
   * @return List of sounding zones.
   */
  virtual const std::list<const RBAZone*>& getPreSoundingZones() const=0;

  /**
   * @brief Returns the view content states to be displayed of the previous arbitration.
   * @return List of visible view content states.
   */
  virtual const std::list<const RBAViewContentState*>& getPreVisibleContentStates() const=0;

  /**
   * @brief Returns the sound content states to be outputted of the previous arbitration.
   * @return List of sounding sound content states.
   * @details The list contains attenuated content states.
   */
  virtual const std::list<const RBASoundContentState*>& getPreSoundingContentStates() const=0;

  /**
   * @brief Returns the active view content states of the previous arbitration
   * result.
   * @return List of active view content states.
   * @details
   * The active view content states are those that have been requested to
   * display so far.  They do not include the view content state whose request
   * has been withdrawn or canceled.
   */
  virtual const std::list<const RBAViewContentState*>& getPreActiveViewContentStates() const=0;

  /**
   * @brief Returns the active sound content states of the previous arbitration
   * result.
   * @return List of active sound content states.
   * @details
   * The active sound content states are those that have been requested to
   * output so far.  They do not include the sound content state whose request
   * has been withdrawn or canceled.
   */
  virtual const std::list<const RBASoundContentState*>& getPreActiveSoundContentStates() const=0;

  /**
   * @brief Returns the active scenes of the previous arbitration.
   * @return List of active scenes.
   * @details
   * The active scenes are those that have been requested for ON so far.
   * They do not include scenes requested for OFF afterwards.
   */
  virtual const std::list<const RBAScene*>& getPreActiveScenes() const=0;

  /**
   * @brief Returns the invisible areas of the previous arbitration.
   * @return List of invisible areas.
   * @details
   * Returns the areas which are not displayed out of all areas.
   */
  virtual const std::list<const RBAArea*>& getPreInvisibleAreas() const=0;

  /*
   * @brief Returns the unsounding zones of the previous arbitration.
   * @return List of unsounding zones.
   * @details
   * Returns the zones which are not outputted out of all zones.
   */
  virtual const std::list<const RBAZone*>& getPreUnsoundingZones() const=0;

  /**
   * @brief Returns the areas which have become invisible at the previous arbitration.
   * @return List of areas.
   *
   * Returns the area which become to be invisible.
   */
  virtual const std::list<const RBAArea*>& getPreHiddenAreas() const=0;

  /**
   * @brief Get the muted zones of the previous arbitration.
   * @return List of muted zones.
   *
   * Retuens the zones that is defeted and canceled sound contents.
   */
  virtual const std::list<const RBAZone*>& getPreMuteZones() const=0;

  /**
   * @brief Returns the attenuated zones of the previous arbitration.
   * @return List of attenuated zones.
   */
  virtual const std::list<const RBAZone*>& getPreAttenuatedZones() const=0;

  /**
   * @brief Returns the canceled view contents of the previous arbitration.
   * @return List of canceled view contents.
   */
  virtual const std::list<const RBAViewContent*>& getPreCanceledViewContents() const=0;

  /**
   * @brief Returns the canceled sound contents of the previous arbitration.
   * @return List of canceled sound contents.
   */
  virtual const std::list<const RBASoundContent*>& getPreCanceledSoundContents() const=0;

  /**
   * @brief Returns the stand by view contents due to defeated at the previous
   * arbitration.
   * @return List of stand by view contents.
   */
  virtual const std::list<const RBAViewContent*>& getPreStandbyViewContents() const=0;

  /**
   * @brief Returns the stand by sound contents due to defeated at previous
   * arbitration.
   * @return List of stand by sound contents.
   */
  virtual const std::list<const RBASoundContent*>& getPreStandbySoundContents() const=0;

  /**
   * @brief Returns the view content state assigned to the area of the previous
   * arbitration.
   * @param area Area
   * @return The view content state assign to the area.
   *
   * If no view content state is allocated to the area, nullptr is returnd.
   */
  virtual const RBAViewContentState* getPreContentState(const RBAArea* area) const=0;

  /**
   * @brief Returns the sound content state assigned to the zone of the previous
   * arbitration.
   * @param zone Zone
   * @return The sound content state assign to the zone.
   *
   * If no sound content state is allocated to the zone, nullptr is returned.
   */
  virtual const RBASoundContentState* getPreContentState(const RBAZone* zone) const=0;

  /**
   * @brief Returns the area to which the view content state is allocated of the
   * previous arbitration.
   * @param state View content state
   * @return The areas to which the view content state.
   *
   * If the view content state is not assigned to any area, nullptr is returned.
   */
  virtual const std::list<const RBAArea*> getPreArea(const RBAViewContentState* state) const=0;

  /**
   * @brief Get the zone to which the sound content state is allocated of the
   * previous arbitration.
   * @param state Sound content state
   * @return The zones to which the sound content state is allocated.
   *
   * If the sound content state is not assigned to any zone,
   * null ptr is retuened.
   */
  virtual const std::list<const RBAZone*> getPreZone(const RBASoundContentState* state) const=0;

  /**
   * @brief Returns the area to which the view content is allocated of the
   * previous arbitration.
   * @param content View content
   * @return The areas to which the view content is allocated.
   *
   * If the view content is not assigned to any area, nullptr is returned.
   */
  virtual const std::list<const RBAArea*> getPreArea(const RBAViewContent* content) const=0;

  /**
   * @brief Returns the zone to which the sound content state is allocated of the
   * previous arbitration.
   * @param content Sound content
   * @return The zones to which the sound content is allocated.
   *
   * If the sound content is not assigned to any area, nullptr is returned.
   */
  virtual const std::list<const RBAZone*> getPreZone(const RBASoundContent* content) const=0;

  /**
   * @brief Returns the size of the area
   * determined in the previous arbitration.
   * @param area Area
   * @return The size of the area.
   */
  virtual const RBASize* getPreSize(const RBAArea* area) const=0;

  /**
   * @brief Returns true if the scene is active
   * of the previous arbitration.
   * @param scene Reference scene to be checked.
   * @return true: Active
   * @return false: Not active
   *
   * The active scene is the scene requested  to ON.
   */
  virtual bool isPreActive(const RBAScene* scene) const=0;

  /**
   * @brief Returns true if the view content is active
   * of the previous arbitration.
   * @param state Reference view content to be checked.
   * @return true: Active
   * @return false: Not active
   *
   * The active view content is the content requested to be displayed.
   */
  virtual bool isPreActive(const RBAViewContent* content) const=0;

  /**
   * @brief Returns true if the sound content is active
   * of the previous arbitration.
   * @param state Reference sound content to be checked.
   * @return true: Active
   * @return false: Not active
   *
   * The active sound content is the content requested to be outputted.
   */
  virtual bool isPreActive(const RBASoundContent* content) const=0;

  /**
   * @brief Returns true if the area is visible
   * of the previous arbitration.
   * @param area Reference area to be checked.
   * @return true: Visible
   * @return false: Not visible
   */
  virtual bool isPreVisible(const RBAArea* area) const=0;

  /**
   * @brief Returns true if the zone is sounding
   * of the previous arbitration.
   * @param zone Reference zone to be checked.
   * @return true: Sounding
   * @return false: Not sounding
   */
  virtual bool isPreSounding(const RBAZone* zone) const=0;

  /**
   * @brief Returns true if the view content state is visible
   * of the previous arbitration.
   * @param state Reference view content state to be checked.
   * @return true: state is allocated to visible area.
   * @return false: state is not allocated to visible area.
   */
  virtual bool isPreVisible(const RBAViewContentState* state) const=0;

  /**
   * @brief Returns true if the sound content state is sounding
   * of the previous arbitration.
   * @param state Reference sound content state to check.
   * @return true: state is allocated to outputting zone.
   * @return false: state is not allocated to outputting zone.
   */
  virtual bool isPreSounding(const RBASoundContentState* state) const=0;

  /**
   * @brief Returns the sounding sound content state assigned to the zone
   * of the previous arbitration.
   * @param zone Zone
   * @return The sounding sound content state assign to the zone.
   *
   *  When a zone is muted, Returns the content state.
   * If no sounding sound content state is allocated the area,
   * nullptr is returnd.
   */
  virtual const RBASoundContentState* getPreSoundContentState(const RBAZone* zone) const=0;

  /**
   * @brief Returns true if the area is hidden
   * of the previous arbitration.
   * @param area Reference area to be checked.
   * @return true: Hidden
   * @return false: Not hidden
   */
  virtual bool isPreHidden(const RBAArea* area) const=0;

  /**
   * @brief Returns true if the zone is muted of the previous arbitration.
   * @param zone Reference zone to be checked.
   * @return true: Muted
   * @return false: Not muted
   */
  virtual bool isPreMute(const RBAZone* zone) const=0;

  /**
   * @brief Returns true if the zone is attenuated
   * of the previous arbitration.
   * @param zone Reference zone to be checked.
   * @return true: Attenuated
   * @return false: Not attenuated
   */
  virtual bool isPreAttenuated(const RBAZone* zone) const=0;

  /**
   * @brief Returns true if the view content state is canceled
   * of the previous arbitration.
   * @param state Reference view content state to be checked.
   * @return true: Canceled
   * @return false: Not canceled or Not request view content state
   */
  virtual bool isPreCancel(const RBAViewContentState* state) const=0;

  /**
   * @brief Returns true if the sound content state is canceled
   * of the previous arbitration.
   * @param state Reference view content state to be checked.
   * @return true: Canceled
   * @return false: Not canceled
   */
  virtual bool isPreCancel(const RBASoundContentState* state) const=0;

  /**
   * @brief Returns the log of the last arbitration.
   * @return Log string
   */
  virtual std::string getLog() const=0;

  /**
   * @brief Returns displaying status
   * @param display to be checked display
   * @return true: something is displayed
   * @return false: nothing is displayed
   */
  virtual bool hasDisplayingArea(const RBADisplay* display) const=0;
  // }

};

}

#endif