se.liu.ida.critiquer.mics
Class ReferenceHolder

java.lang.Object
  extended by se.liu.ida.critiquer.mics.ReferenceHolder

public class ReferenceHolder
extends Object

If it makes sense to have global references to something, then put it here. This could be references to activity classes, constraint classes or such like.


Field Summary
static ArrayList<Class<? extends Activity>> activityClasses
          The activity classes used in the current scenario.
static ActivityFactory activityFactory
          The scenario specific factories that create a list of activity classes as well as a resource structure as required by the OrganizationModel.
static AgentFactory agentFactory
           
static HashSet<Activity> allActivities
          Static reference to a set of all activities that are created.
static Commanders commanders
          Since the list of commanders should be available to several views that are not related (the task view and resource view for instance), there is a reference to it here.
static Communicator communicator
           
static ArrayList<Class<? extends StandardConstraint>> constraintClasses
           
static CriticTextArea critiqueInfoArea
          Information area that can be used by critics if they want to display information in textual form
static OrganizationModel organizationModel
          Model of all the resources that are available in the organization, ordered hierarchically according to subsumption.
static String resourceDir
          Directory containing the map and other image resources
static ResourceView resourceView
           
static Activity selectedActivity
          Activity that is currently selected in some view and may therefore be of particular interest to critics that highlight information on the currently selected activity.
static GeoView simulationView
           
static ArrayList<TimeParameterOrdering> temporalConstraints
          Static reference to all constraints that order activities in time in some way.
static TimeView timeView
           
static JFrame topFrame
           
 
Constructor Summary
ReferenceHolder()
           
 
Method Summary
static DefaultGraphModel getGraphModel()
          To make sure that there is only one graph model used by all views that want to represent tasks in a graph, we have a singleton graph model factory here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activityFactory

public static ActivityFactory activityFactory
The scenario specific factories that create a list of activity classes as well as a resource structure as required by the OrganizationModel. TODO: Change these by creating a scenario selection possibility


agentFactory

public static AgentFactory agentFactory

activityClasses

public static ArrayList<Class<? extends Activity>> activityClasses
The activity classes used in the current scenario. These are created by the activityFactory.


constraintClasses

public static ArrayList<Class<? extends StandardConstraint>> constraintClasses

communicator

public static Communicator communicator

temporalConstraints

public static ArrayList<TimeParameterOrdering> temporalConstraints
Static reference to all constraints that order activities in time in some way.


organizationModel

public static OrganizationModel organizationModel
Model of all the resources that are available in the organization, ordered hierarchically according to subsumption. That is, a larger force element subsumes a smaller iff the smaller element is contained as a part of the larger.


allActivities

public static HashSet<Activity> allActivities
Static reference to a set of all activities that are created.


selectedActivity

public static Activity selectedActivity
Activity that is currently selected in some view and may therefore be of particular interest to critics that highlight information on the currently selected activity.


topFrame

public static JFrame topFrame

timeView

public static TimeView timeView

resourceView

public static ResourceView resourceView

simulationView

public static GeoView simulationView

commanders

public static Commanders commanders
Since the list of commanders should be available to several views that are not related (the task view and resource view for instance), there is a reference to it here.


resourceDir

public static String resourceDir
Directory containing the map and other image resources


critiqueInfoArea

public static CriticTextArea critiqueInfoArea
Information area that can be used by critics if they want to display information in textual form

Constructor Detail

ReferenceHolder

public ReferenceHolder()
Method Detail

getGraphModel

public static DefaultGraphModel getGraphModel()
To make sure that there is only one graph model used by all views that want to represent tasks in a graph, we have a singleton graph model factory here.

Returns:
a new graph model if none exists or the one that was created during a previous call to this method.